Skip to content

Commit 9858031

Browse files
authored
feat(x-aep-field, oas): add resource reference child type (#39)
matching the proto annotations (also removing the nested field to match).
1 parent 1b936b9 commit 9858031

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

json_schema/extensions/x-aep-field.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ properties:
1818
# corresponding field is not included in output.
1919
- "INPUT_ONLY"
2020
resource_reference:
21-
description: Describes a resource reference for fields that reference API resources
22-
type: object
23-
properties:
24-
type:
25-
description: |
26-
The resource type that the annotated field references.
21+
description: |
22+
The resource type that the annotated field references.
2723
28-
Example:
29-
"library.example.com/Topic"
24+
Example:
25+
"library.example.com/topic"
3026
31-
Occasionally, a field may reference an arbitrary resource. In this case,
32-
APIs use the special value "*" in their resource reference.
33-
type: array
34-
items: string
35-
additionalProperties: false
27+
Occasionally, a field may reference an arbitrary resource. In this case,
28+
APIs use the special value "*" in their resource reference.
29+
type: array
30+
items: string
31+
resource_reference_child_type:
32+
description: |
33+
The field annotated with this supports all resources that have
34+
child types of the resource specified.
35+
36+
Example:
37+
"library.example.com/topic"
38+
type: array
39+
items: string

0 commit comments

Comments
 (0)