otomi-core
otomi-core copied to clipboard
Split up values-schema into multiple files
To make values-schema easier to manage, and to accomodate transformation of values-schema to OAS 3.1 model for consumption by otomi-api, we want to split up values-schema.yaml into multiple files. Take a look at the files that exist in redkubes/otomi-api/src/openapi for the names of the files. We will put them in values-schema/*.yaml.
Example to link json files: $ref: file:values-schema/service.json
Please google how to do this with yaml source files. Maybe it is possible to do it directly like:
$ref: file:values-schema/yaml
But please investigate other options otherwise.
Please google how to do this with yaml source files. Maybe it is possible to do it directly like:
$ref: file:values-schema/yaml
But please investigate other options otherwise.
Looks like $ref: values-schema.yaml (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#referenceObject)
I am already refactoring this in api. Coming soon
I am already refactoring this in api. Coming soon
For reference:
- issue: https://github.com/redkubes/otomi-api/issues/145.
- pr: https://github.com/redkubes/otomi-api/pull/152