Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update incentive_relationship_schema #532

Closed
wants to merge 1 commit into from

Conversation

matelau
Copy link
Contributor

@matelau matelau commented Jul 15, 2024

To make exporting the incentive relationship easier I have added the explicit type of prereq incentive relationship to each property in the prerequisite object. Transforming

  "prerequisites": {
    "CO-541": "CO-455",
    "CO-542": "CO-457"
  }

to

  "prerequisites": {
    "CO-541": {
      "allof": [
        "CO-455"
      ]
    },
    "CO-542": {
      "allof": [
        "CO-457"
      ]
    }
  },

For more examples see: #531

This change should be backwards compatible with the existing spreadsheet-to-json scripts, but requires relaxing of the incentives relationship schema from oneOf to anyOf.

@matelau matelau marked this pull request as ready for review July 15, 2024 20:15
@matelau matelau requested review from oyamauchi and benjf July 15, 2024 20:15
@matelau matelau closed this Jul 16, 2024
@matelau matelau deleted the asa/update-incentive-relationship-schema branch July 16, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant