-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clashing class names when generating Pkl from OpenAPI/JSON Schema (…
…#98)
- Loading branch information
Showing
13 changed files
with
454 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
packages/k8s.contrib.crd/tests/fixtures/crds_conflict.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: foo.bar.com | ||
spec: | ||
group: foo.bar | ||
names: | ||
categories: [] | ||
kind: FooBar | ||
plural: foobar | ||
shortNames: | ||
- fb | ||
singular: foobar | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: [] | ||
name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
foo: | ||
properties: | ||
redObject: | ||
description: Test nested objects field collision. | ||
properties: | ||
nestedField: | ||
description: Nested field. | ||
type: string | ||
nestedObject: | ||
description: Nested child object. | ||
properties: | ||
nestedRed: | ||
description: Nested field. | ||
type: string | ||
type: object | ||
nestedList: | ||
description: Nested list object red. | ||
items: | ||
description: Red nested object test items. | ||
properties: | ||
nestedListItemField: | ||
description: Red nested list field. | ||
type: string | ||
type: object | ||
nullable: true | ||
type: array | ||
required: | ||
- nestedField | ||
type: object | ||
blueObject: | ||
description: Test nested objects field collision. | ||
properties: | ||
nestedField: | ||
description: Nested field. | ||
type: string | ||
nestedObject: | ||
description: Nested child object. | ||
properties: | ||
nestedBlue: | ||
description: Nested field. | ||
type: string | ||
type: object | ||
nestedList: | ||
description: Nested list object blue. | ||
items: | ||
description: Blue nested object test items. | ||
properties: | ||
nestedListItemField: | ||
description: Blue nested list field. | ||
type: string | ||
type: object | ||
nullable: true | ||
type: array | ||
required: | ||
- nestedField | ||
type: object | ||
required: | ||
- image | ||
type: object | ||
served: true | ||
storage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.