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

Upgrade from OpenAPI 3.0 to 3.1 #437

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

cookeac
Copy link
Collaborator

@cookeac cookeac commented Dec 1, 2023

Update to OpenAPI 3.1

The following changes have been made to all OpenAPI files in the url-schemes folder:

  • Updated to "openapi": "3.1.0"
  • Updated to version 1.4 (ahead of the ADE 1.4 release)
  • Updated all tags to ADE-1.4-xxxx

The following changes have been made to JSON Schema files in the types and resources folders where "nullable": true was previously specified:

  • replace "type": "string" with "type": ["string", "null"]
  • replace "type": "number" with "type": ["number", "null"]
  • replace "type": "integer" with "type": ["integer", "null"]
  • replace "type": "boolean" with "type": ["boolean", "null"]
  • replace "type": "array" with "type": ["array", "null"]

Where a complex type (imported with "$ref" was previously nullable):

  • If the type was an object, add "type": ["object", "null"] before the $ref
  • If the type was a string (an enumeration or an icarDateTimeType), add "type": ["string", "null"] before the $ref

Resolves #239

@cookeac cookeac requested review from AndreasSchultzGEA and AlexeyHardCode and removed request for AndreasSchultzGEA and AlexeyHardCode December 1, 2023 05:17
@cookeac cookeac merged commit 8ddf4bb into adewg:239-openapi-3.1 Dec 1, 2023
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