Closed cookeac closed 4 months ago
A further note - until it is merged, this PR will fail Speccy validation. This is because Speccy is deprecated and does not support OpenAPI 3.1. When this PR is merged, it will remove the GitHub action for Speccy, leaving us with Spectral validation.
We agreed (meeting 2024-04-04) that we could merge this once #451 is addressed with a PR, as @AlexeyHardCode has tested code generation with C# at least.
Update to OpenAPI 3.1
The following changes have been made to all OpenAPI files in the url-schemes folder:
"openapi": "3.1.0"
The following changes have been made to JSON Schema files in the types and resources folders where "nullable": true was previously specified:
"type": "string"
with"type": ["string", "null"]
"type": "number"
with"type": ["number", "null"]
"type": "integer"
with"type": ["integer", "null"]
"type": "boolean"
with"type": ["boolean", "null"]
"type": "array"
with"type": ["array", "null"]
Where a complex type (imported with "$ref" was previously nullable):
"type": ["object", "null"]
before the $ref"type": ["string", "null"]
before the $refThese last changes appear in examples online, but they are the ones that are most likely to interrupt code generation. Please test.
Resolves https://github.com/adewg/ICAR/issues/239