otomi-core icon indicating copy to clipboard operation
otomi-core copied to clipboard

Split up values-schema into multiple files

Open Morriz opened this issue 4 years ago • 3 comments

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.

Morriz avatar Mar 30 '21 21:03 Morriz

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)

0-sv avatar Apr 07 '21 11:04 0-sv

I am already refactoring this in api. Coming soon

Morriz avatar Apr 09 '21 08:04 Morriz

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

0-sv avatar Apr 09 '21 09:04 0-sv