You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Respect enum in the JSON schema when importing CRDs and APIs.
For example, this schema:
"reclaimPolicy": {
"description": "ReclaimPolicy specifies what will happen to this managed resource when its resource claim is deleted",
"enum": [
"Retain",
"Delete"
],
"type": "string"
}
When a JSON schema includes an `enum` string value list, generate a typescript `enum` to offer usability.
Resolves#196
BREAKING CHANGE: enum string values are now proper enums instead of just `string`s.
When a JSON schema includes an `enum` string value list, generate a typescript `enum` to offer usability.
Resolves#196
BREAKING CHANGE: enum string values are now proper enums instead of just `string`s.
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Respect
enum
in the JSON schema when importing CRDs and APIs.For example, this schema:
Should be imported as:
The text was updated successfully, but these errors were encountered: