Skip to content

Commit 33e1a2d

Browse files
Change output format
1 parent 118809b commit 33e1a2d

File tree

6 files changed

+63
-51
lines changed

6 files changed

+63
-51
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 18 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/project/tags/TagsResponse.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { AdditionalProperties, AdditionalProperty } from '@spec_utils/behaviors'
21-
import { Dictionary } from '@spec_utils/Dictionary'
20+
import { AdditionalProperties } from '@spec_utils/behaviors'
21+
import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary'
2222

2323

2424
/**
@@ -31,10 +31,8 @@ class Tags implements AdditionalProperties<string, string> {
3131
_organisation: string
3232
}
3333

34-
/**
35-
* @behavior_meta AdditionalProperty key=string value=Tags
36-
*/
37-
class ProjectTags implements AdditionalProperty<string, Tags> {
34+
class ProjectTags {
35+
origin: SingleKeyDictionary<string, Tags>
3836
linked_projects?: Dictionary<string, Tags>
3937
}
4038

specification/project/tags/examples/response/FollowInfoResponseExample1.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ description: A successful response from `GET /_project/tags`
44
# response_code: 200
55
value: |-
66
{
7-
"c56c4f8849c64cc6ae59c261f40bd195": {
8-
"_id": "c56c4f8849c64cc6ae59c261f40bd195"
9-
"_type": "elasticsearch",
10-
"_alias": "project-1",
11-
"_csp": "aws",
12-
"_region": "us-east-1"
13-
"mytag1": "foo",
14-
"mytag2": "bar"
15-
}
7+
"origin": {
8+
"c56c4f8849c64cc6ae59c261f40bd195": {
9+
"_id": "c56c4f8849c64cc6ae59c261f40bd195"
10+
"_type": "elasticsearch",
11+
"_alias": "project-1",
12+
"_csp": "aws",
13+
"_region": "us-east-1"
14+
"mytag1": "foo",
15+
"mytag2": "bar"
16+
}
17+
},
1618
"linked_projects": {
1719
"a3b88ea3f195a336ae59c261f40bd195": {
1820
"_id": "a3b88ea3f195a336ae59c261f40bd195"

0 commit comments

Comments
 (0)