-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate schema for nested object in array (#197)
Signed-off-by: jakezhu9 <[email protected]>
- Loading branch information
Showing
5 changed files
with
198 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
""" | ||
This file was generated by the KCL auto-gen tool. DO NOT EDIT. | ||
Editing this file might prove futile when you re-run the KCL auto-gen generate command. | ||
""" | ||
|
||
schema MonacoManifestSchema: | ||
""" | ||
MonacoManifestSchema | ||
|
||
Attributes | ||
---------- | ||
manifest_version : str, required | ||
The schema version this manifest conforms to - e.g. 1.0 | ||
projects : [MonacoManifestSchemaProjectsItems0], required | ||
The projects grouped by this manifest | ||
environment_groups : [MonacoManifestSchemaEnvironmentGroupsItems0], required | ||
The Environment groups to which projects in this manifest are deployed | ||
""" | ||
|
||
manifest_version: str | ||
projects: [MonacoManifestSchemaProjectsItems0] | ||
environment_groups: [MonacoManifestSchemaEnvironmentGroupsItems0] | ||
|
||
schema MonacoManifestSchemaEnvironmentGroupsItems0: | ||
""" | ||
MonacoManifestSchemaEnvironmentGroupsItems0 | ||
|
||
Attributes | ||
---------- | ||
name : str, optional | ||
The name of this environment group | ||
environments : [MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0], optional | ||
The environments in this group | ||
""" | ||
|
||
name?: str | ||
environments?: [MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0] | ||
|
||
schema MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0: | ||
""" | ||
MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0 | ||
|
||
Attributes | ||
---------- | ||
name : str, optional | ||
The name of this environment | ||
url : MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0Url, optional | ||
The URL of this environment | ||
""" | ||
|
||
name?: str | ||
url?: MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0Url | ||
|
||
schema MonacoManifestSchemaEnvironmentGroupsItems0EnvironmentsItems0Url: | ||
""" | ||
The URL of this environment | ||
|
||
Attributes | ||
---------- | ||
type : str, optional | ||
Optional Type of URL definition. | ||
value : str, optional | ||
The value of the URL, based on type either an URL or environment variable name | ||
""" | ||
|
||
type?: str | ||
value?: str | ||
|
||
schema MonacoManifestSchemaProjectsItems0: | ||
""" | ||
MonacoManifestSchemaProjectsItems0 | ||
|
||
Attributes | ||
---------- | ||
name : str, required | ||
The name of this project | ||
type : str, optional | ||
Optional Type of this project. Default: Simple | ||
path : str, optional | ||
Optional filepath of the project relative to the manifest.yaml location. Defaults to name | ||
""" | ||
|
||
name: str | ||
type?: str | ||
path?: str | ||
|
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 @@ | ||
{ | ||
"$id": "https://example.com/monaco.manifest.schema.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Dynatrace Monitoring as Code Manifest File", | ||
"type": "object", | ||
"properties": { | ||
"manifestVersion": { | ||
"type": "string", | ||
"description": "The schema version this manifest conforms to - e.g. 1.0" | ||
}, | ||
"projects": { | ||
"type": "array", | ||
"description": "The projects grouped by this manifest", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of this project" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "Optional Type of this project. Default: Simple" | ||
}, | ||
"path": { | ||
"type": "string", | ||
"description": "Optional filepath of the project relative to the manifest.yaml location. Defaults to name" | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
] | ||
} | ||
}, | ||
"environmentGroups": { | ||
"description": "The Environment groups to which projects in this manifest are deployed", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of this environment group" | ||
}, | ||
"environments": { | ||
"description": "The environments in this group", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of this environment" | ||
}, | ||
"url": { | ||
"description": "The URL of this environment", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"description": "Optional Type of URL definition.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"description": "The value of the URL, based on type either an URL or environment variable name" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"manifestVersion", | ||
"projects", | ||
"environmentGroups" | ||
] | ||
} |
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