1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
---
$schema: http://json-schema.org/draft-07/schema#
definitions:
ref1:
type: array
items:
$ref: /definitions/ref2
ref2:
type: string
minLength: 1
ref3:
type: integer
dupe_name:
type: integer
i_have_nested_refs:
type: object
properties:
my_key1:
$ref: /definitions/ref1
my_key2:
$ref: /definitions/ref1
# actually a person, as in https://json-schema.org/understanding-json-schema/structuring.html
i_have_a_recursive_ref:
type: object
properties:
name:
type: string
children:
type: array
items:
$ref: /definitions/i_have_a_recursive_ref
default: []
i_have_a_ref_to_another_file:
type: object
properties:
name:
$ref: more-bundle2.yaml#/definitions/my_name
address:
$ref: more-bundle2.yaml#/definitions/my_address
secrets:
$ref: /definitions/ref1
i_am_a_ref:
$ref: /definitions/ref1
i_am_a_ref_level_1:
$ref: /definitions/i_am_a_ref_level_2
i_am_a_ref_level_2:
$ref: /definitions/ref3
i_am_a_ref_to_another_file:
$ref: more-bundle2.yaml#/definitions/i_have_a_ref_to_the_first_filename
i_am_a_ref_with_the_same_name:
$ref: more-bundle2.yaml#/definitions/i_am_a_ref_with_the_same_name
i_have_refs_with_the_same_name:
type: object
properties:
me:
$ref: /definitions/i_am_a_ref_with_the_same_name
i_contain_refs_to_same_named_definitions:
type: object
properties:
foo:
$ref: /definitions/dupe_name
bar:
$ref: more-bundle2.yaml#/definitions/dupe_name
i_have_a_ref_with_the_same_name:
type: object
properties:
name:
type: string
children:
type: array
items:
$ref: more-bundle2.yaml#/definitions/i_have_a_ref_with_the_same_name
default: []
|