Debian Codegraph @

test/integration/testdata/golden.v3.json

raw symbols SCIP
1 {
2 "openapi": "3.0.0",
3 "info": {
4 "title": "Integration Test",
5 "version": "1.0"
6 },
7 "paths": {
8 "/test/custom": {
9 "post": {
10 "operationId": "create-custom.Bah",
11 "responses": {
12 "201": {
13 "description": "Created",
14 "content": {
15 "application/json": {
16 "schema": {
17 "$ref": "#/components/schemas/custom.Bah"
18 }
19 }
20 }
21 },
22 "404": {
23 "$ref": "#/components/responses/NotFound"
24 }
25 }
26 }
27 },
28 "/test/custom/bac": {
29 "get": {
30 "operationId": "get-custom.Bac",
31 "responses": {
32 "200": {
33 "description": "OK",
34 "content": {
35 "application/json": {
36 "schema": {
37 "$ref": "#/components/schemas/custom.Bac"
38 }
39 }
40 }
41 },
42 "404": {
43 "$ref": "#/components/responses/NotFound"
44 }
45 }
46 }
47 },
48 "/test/custom/bah": {
49 "get": {
50 "operationId": "get-custom.Bah",
51 "responses": {
52 "200": {
53 "description": "OK",
54 "content": {
55 "application/json": {
56 "schema": {
57 "$ref": "#/components/schemas/custom.Bah"
58 }
59 }
60 }
61 },
62 "404": {
63 "$ref": "#/components/responses/NotFound"
64 }
65 }
66 }
67 },
68 "/test/custom/bak": {
69 "get": {
70 "operationId": "get-custom.Bak",
71 "responses": {
72 "200": {
73 "description": "OK",
74 "content": {
75 "application/json": {
76 "schema": {
77 "$ref": "#/components/schemas/custom.Bak"
78 }
79 }
80 }
81 },
82 "404": {
83 "$ref": "#/components/responses/NotFound"
84 }
85 }
86 }
87 },
88 "/test/custom/bal": {
89 "get": {
90 "operationId": "get-custom.Bal",
91 "responses": {
92 "200": {
93 "description": "OK",
94 "content": {
95 "application/json": {
96 "schema": {
97 "$ref": "#/components/schemas/custom.Bal"
98 }
99 }
100 }
101 },
102 "404": {
103 "$ref": "#/components/responses/NotFound"
104 }
105 }
106 }
107 },
108 "/test/defaults": {
109 "post": {
110 "operationId": "create-defaults.Defaulted",
111 "responses": {
112 "201": {
113 "description": "Created",
114 "content": {
115 "application/json": {
116 "schema": {
117 "$ref": "#/components/schemas/defaults.Defaulted"
118 }
119 }
120 }
121 },
122 "404": {
123 "$ref": "#/components/responses/NotFound"
124 }
125 }
126 }
127 },
128 "/test/defaults/defaulted": {
129 "get": {
130 "operationId": "get-defaults.Defaulted",
131 "responses": {
132 "200": {
133 "description": "OK",
134 "content": {
135 "application/json": {
136 "schema": {
137 "$ref": "#/components/schemas/defaults.Defaulted"
138 }
139 }
140 }
141 },
142 "404": {
143 "$ref": "#/components/responses/NotFound"
144 }
145 }
146 }
147 },
148 "/test/dummytype": {
149 "post": {
150 "operationId": "create-dummytype.Waldo",
151 "responses": {
152 "201": {
153 "description": "Created",
154 "content": {
155 "application/json": {
156 "schema": {
157 "$ref": "#/components/schemas/dummytype.Waldo"
158 }
159 }
160 }
161 },
162 "404": {
163 "$ref": "#/components/responses/NotFound"
164 },
165 "500": {
166 "description": "Internal Service Error",
167 "content": {
168 "application/json": {
169 "schema": {
170 "$ref": "#/components/schemas/dummytype.StatusError"
171 }
172 }
173 }
174 }
175 }
176 }
177 },
178 "/test/dummytype/bar": {
179 "get": {
180 "operationId": "get-dummytype.Bar",
181 "responses": {
182 "404": {
183 "$ref": "#/components/responses/NotFound"
184 },
185 "500": {
186 "description": "Internal Service Error",
187 "content": {
188 "application/json": {
189 "schema": {
190 "$ref": "#/components/schemas/dummytype.StatusError"
191 }
192 }
193 }
194 }
195 }
196 }
197 },
198 "/test/dummytype/baz": {
199 "get": {
200 "operationId": "get-dummytype.Baz",
201 "responses": {
202 "404": {
203 "$ref": "#/components/responses/NotFound"
204 },
205 "500": {
206 "description": "Internal Service Error",
207 "content": {
208 "application/json": {
209 "schema": {
210 "$ref": "#/components/schemas/dummytype.StatusError"
211 }
212 }
213 }
214 }
215 }
216 }
217 },
218 "/test/dummytype/foo": {
219 "get": {
220 "operationId": "get-dummytype.Foo",
221 "responses": {
222 "404": {
223 "$ref": "#/components/responses/NotFound"
224 },
225 "500": {
226 "description": "Internal Service Error",
227 "content": {
228 "application/json": {
229 "schema": {
230 "$ref": "#/components/schemas/dummytype.StatusError"
231 }
232 }
233 }
234 }
235 }
236 }
237 },
238 "/test/dummytype/waldo": {
239 "get": {
240 "operationId": "get-dummytype.Waldo",
241 "responses": {
242 "404": {
243 "$ref": "#/components/responses/NotFound"
244 },
245 "500": {
246 "description": "Internal Service Error",
247 "content": {
248 "application/json": {
249 "schema": {
250 "$ref": "#/components/schemas/dummytype.StatusError"
251 }
252 }
253 }
254 }
255 }
256 }
257 },
258 "/test/listtype": {
259 "post": {
260 "operationId": "create-listtype.SetList",
261 "responses": {
262 "201": {
263 "description": "Created",
264 "content": {
265 "application/json": {
266 "schema": {
267 "$ref": "#/components/schemas/listtype.SetList"
268 }
269 }
270 }
271 },
272 "404": {
273 "$ref": "#/components/responses/NotFound"
274 }
275 }
276 }
277 },
278 "/test/listtype/atomiclist": {
279 "get": {
280 "operationId": "get-listtype.AtomicList",
281 "responses": {
282 "200": {
283 "description": "OK",
284 "content": {
285 "application/json": {
286 "schema": {
287 "$ref": "#/components/schemas/listtype.AtomicList"
288 }
289 }
290 }
291 },
292 "404": {
293 "$ref": "#/components/responses/NotFound"
294 }
295 }
296 }
297 },
298 "/test/listtype/maplist": {
299 "get": {
300 "operationId": "get-listtype.MapList",
301 "responses": {
302 "200": {
303 "description": "OK",
304 "content": {
305 "application/json": {
306 "schema": {
307 "$ref": "#/components/schemas/listtype.MapList"
308 }
309 }
310 }
311 },
312 "404": {
313 "$ref": "#/components/responses/NotFound"
314 }
315 }
316 }
317 },
318 "/test/listtype/setlist": {
319 "get": {
320 "operationId": "get-listtype.SetList",
321 "responses": {
322 "200": {
323 "description": "OK",
324 "content": {
325 "application/json": {
326 "schema": {
327 "$ref": "#/components/schemas/listtype.SetList"
328 }
329 }
330 }
331 },
332 "404": {
333 "$ref": "#/components/responses/NotFound"
334 }
335 }
336 }
337 },
338 "/test/maptype": {
339 "post": {
340 "operationId": "create-maptype.AtomicMap",
341 "responses": {
342 "201": {
343 "description": "Created",
344 "content": {
345 "application/json": {
346 "schema": {
347 "$ref": "#/components/schemas/maptype.AtomicMap"
348 }
349 }
350 }
351 },
352 "404": {
353 "$ref": "#/components/responses/NotFound"
354 }
355 }
356 }
357 },
358 "/test/maptype/atomicmap": {
359 "get": {
360 "operationId": "get-maptype.AtomicMap",
361 "responses": {
362 "200": {
363 "description": "OK",
364 "content": {
365 "application/json": {
366 "schema": {
367 "$ref": "#/components/schemas/maptype.AtomicMap"
368 }
369 }
370 }
371 },
372 "404": {
373 "$ref": "#/components/responses/NotFound"
374 }
375 }
376 }
377 },
378 "/test/maptype/granularmap": {
379 "get": {
380 "operationId": "get-maptype.GranularMap",
381 "responses": {
382 "200": {
383 "description": "OK",
384 "content": {
385 "application/json": {
386 "schema": {
387 "$ref": "#/components/schemas/maptype.GranularMap"
388 }
389 }
390 }
391 },
392 "404": {
393 "$ref": "#/components/responses/NotFound"
394 }
395 }
396 }
397 },
398 "/test/structtype": {
399 "post": {
400 "operationId": "create-structtype.DeclaredAtomicStruct",
401 "responses": {
402 "201": {
403 "description": "Created",
404 "content": {
405 "application/json": {
406 "schema": {
407 "$ref": "#/components/schemas/structtype.DeclaredAtomicStruct"
408 }
409 }
410 }
411 },
412 "404": {
413 "$ref": "#/components/responses/NotFound"
414 }
415 }
416 }
417 },
418 "/test/structtype/atomicstruct": {
419 "get": {
420 "operationId": "get-structtype.AtomicStruct",
421 "responses": {
422 "200": {
423 "description": "OK",
424 "content": {
425 "application/json": {
426 "schema": {
427 "$ref": "#/components/schemas/structtype.AtomicStruct"
428 }
429 }
430 }
431 },
432 "404": {
433 "$ref": "#/components/responses/NotFound"
434 }
435 }
436 }
437 },
438 "/test/structtype/declaredatomicstruct": {
439 "get": {
440 "operationId": "get-structtype.DeclaredAtomicStruct",
441 "responses": {
442 "200": {
443 "description": "OK",
444 "content": {
445 "application/json": {
446 "schema": {
447 "$ref": "#/components/schemas/structtype.DeclaredAtomicStruct"
448 }
449 }
450 }
451 },
452 "404": {
453 "$ref": "#/components/responses/NotFound"
454 }
455 }
456 }
457 },
458 "/test/structtype/fieldleveloverridestruct": {
459 "get": {
460 "operationId": "get-structtype.FieldLevelOverrideStruct",
461 "responses": {
462 "200": {
463 "description": "OK",
464 "content": {
465 "application/json": {
466 "schema": {
467 "$ref": "#/components/schemas/structtype.FieldLevelOverrideStruct"
468 }
469 }
470 }
471 },
472 "404": {
473 "$ref": "#/components/responses/NotFound"
474 }
475 }
476 }
477 },
478 "/test/structtype/granularstruct": {
479 "get": {
480 "operationId": "get-structtype.GranularStruct",
481 "responses": {
482 "200": {
483 "description": "OK",
484 "content": {
485 "application/json": {
486 "schema": {
487 "$ref": "#/components/schemas/structtype.GranularStruct"
488 }
489 }
490 }
491 },
492 "404": {
493 "$ref": "#/components/responses/NotFound"
494 }
495 }
496 }
497 },
498 "/test/uniontype": {
499 "post": {
500 "operationId": "create-uniontype.InlinedUnion",
501 "responses": {
502 "201": {
503 "description": "Created",
504 "content": {
505 "application/json": {
506 "schema": {
507 "$ref": "#/components/schemas/uniontype.InlinedUnion"
508 }
509 }
510 }
511 },
512 "404": {
513 "$ref": "#/components/responses/NotFound"
514 }
515 }
516 }
517 },
518 "/test/uniontype/inlinedunion": {
519 "get": {
520 "operationId": "get-uniontype.InlinedUnion",
521 "responses": {
522 "200": {
523 "description": "OK",
524 "content": {
525 "application/json": {
526 "schema": {
527 "$ref": "#/components/schemas/uniontype.InlinedUnion"
528 }
529 }
530 }
531 },
532 "404": {
533 "$ref": "#/components/responses/NotFound"
534 }
535 }
536 }
537 },
538 "/test/uniontype/toplevelunion": {
539 "get": {
540 "operationId": "get-uniontype.TopLevelUnion",
541 "responses": {
542 "200": {
543 "description": "OK",
544 "content": {
545 "application/json": {
546 "schema": {
547 "$ref": "#/components/schemas/uniontype.TopLevelUnion"
548 }
549 }
550 }
551 },
552 "404": {
553 "$ref": "#/components/responses/NotFound"
554 }
555 }
556 }
557 },
558 "/test/valuevalidation": {
559 "post": {
560 "operationId": "create-valuevalidation.Foo",
561 "responses": {
562 "201": {
563 "description": "Created",
564 "content": {
565 "application/json": {
566 "schema": {
567 "$ref": "#/components/schemas/valuevalidation.Foo"
568 }
569 }
570 }
571 },
572 "404": {
573 "$ref": "#/components/responses/NotFound"
574 }
575 }
576 }
577 },
578 "/test/valuevalidation/foo": {
579 "get": {
580 "operationId": "get-valuevalidation.Foo",
581 "responses": {
582 "200": {
583 "description": "OK",
584 "content": {
585 "application/json": {
586 "schema": {
587 "$ref": "#/components/schemas/valuevalidation.Foo"
588 }
589 }
590 }
591 },
592 "404": {
593 "$ref": "#/components/responses/NotFound"
594 }
595 }
596 }
597 },
598 "/test/valuevalidation/foo2": {
599 "get": {
600 "operationId": "get-valuevalidation.Foo2",
601 "responses": {
602 "200": {
603 "description": "OK",
604 "content": {
605 "application/json": {
606 "schema": {
607 "$ref": "#/components/schemas/valuevalidation.Foo2"
608 }
609 }
610 }
611 },
612 "404": {
613 "$ref": "#/components/responses/NotFound"
614 }
615 }
616 }
617 },
618 "/test/valuevalidation/foo3": {
619 "get": {
620 "operationId": "get-valuevalidation.Foo3",
621 "responses": {
622 "200": {
623 "description": "OK",
624 "content": {
625 "application/json": {
626 "schema": {
627 "$ref": "#/components/schemas/valuevalidation.Foo3"
628 }
629 }
630 }
631 },
632 "404": {
633 "$ref": "#/components/responses/NotFound"
634 }
635 }
636 }
637 },
638 "/test/valuevalidation/foo4": {
639 "get": {
640 "operationId": "get-valuevalidation.Foo4",
641 "responses": {
642 "200": {
643 "description": "OK",
644 "content": {
645 "application/json": {
646 "schema": {
647 "$ref": "#/components/schemas/valuevalidation.Foo4"
648 }
649 }
650 }
651 },
652 "404": {
653 "$ref": "#/components/responses/NotFound"
654 }
655 }
656 }
657 },
658 "/test/valuevalidation/foo5": {
659 "get": {
660 "operationId": "get-valuevalidation.Foo5",
661 "responses": {
662 "200": {
663 "description": "OK",
664 "content": {
665 "application/json": {
666 "schema": {
667 "$ref": "#/components/schemas/valuevalidation.Foo5"
668 }
669 }
670 }
671 },
672 "404": {
673 "$ref": "#/components/responses/NotFound"
674 }
675 }
676 }
677 }
678 },
679 "components": {
680 "schemas": {
681 "custom.Bac": {
682 "type": "object"
683 },
684 "custom.Bah": {
685 "type": "object"
686 },
687 "custom.Bak": {
688 "type": "integer"
689 },
690 "custom.Bal": {
691 "type": "string"
692 },
693 "defaults.Defaulted": {
694 "type": "object",
695 "required": [
696 "OtherField",
697 "List",
698 "Sub",
699 "OtherSub",
700 "Map"
701 ],
702 "properties": {
703 "Field": {
704 "type": "string",
705 "default": "bar"
706 },
707 "List": {
708 "type": "array",
709 "default": [
710 "foo",
711 "bar"
712 ],
713 "items": {
714 "type": "string",
715 "default": ""
716 }
717 },
718 "Map": {
719 "type": "object",
720 "default": {
721 "foo": "bar"
722 },
723 "additionalProperties": {
724 "type": "string",
725 "default": ""
726 }
727 },
728 "OtherField": {
729 "type": "integer",
730 "format": "int32",
731 "default": 0
732 },
733 "OtherSub": {
734 "default": {},
735 "allOf": [
736 {
737 "$ref": "#/components/schemas/defaults.SubStruct"
738 }
739 ]
740 },
741 "Sub": {
742 "default": {
743 "i": 5,
744 "s": "foo"
745 },
746 "allOf": [
747 {
748 "$ref": "#/components/schemas/defaults.SubStruct"
749 }
750 ]
751 },
752 "defaultedAliasSymbolReference": {
753 "type": "string",
754 "default": "SymbolConstant"
755 },
756 "externalSymbolReference": {
757 "type": "string",
758 "default": "apple"
759 },
760 "fullyQualifiedSymbolReference": {
761 "type": "string",
762 "default": "SymbolConstant"
763 },
764 "localSymbolReference": {
765 "type": "string",
766 "default": "SymbolConstant"
767 },
768 "pointerConversionSymbolReference": {
769 "type": "string",
770 "default": "apple"
771 }
772 }
773 },
774 "defaults.SubStruct": {
775 "type": "object",
776 "required": [
777 "S"
778 ],
779 "properties": {
780 "I": {
781 "type": "integer",
782 "format": "int32",
783 "default": 1
784 },
785 "S": {
786 "type": "string",
787 "default": ""
788 }
789 }
790 },
791 "dummytype.Bar": {
792 "type": "object",
793 "required": [
794 "ViolationBehind",
795 "Violation"
796 ],
797 "properties": {
798 "Violation": {
799 "type": "boolean",
800 "default": false
801 },
802 "ViolationBehind": {
803 "type": "boolean",
804 "default": false
805 }
806 }
807 },
808 "dummytype.Baz": {
809 "type": "object",
810 "required": [
811 "Violation",
812 "ViolationBehind"
813 ],
814 "properties": {
815 "Violation": {
816 "type": "boolean",
817 "default": false
818 },
819 "ViolationBehind": {
820 "type": "boolean",
821 "default": false
822 }
823 }
824 },
825 "dummytype.Foo": {
826 "type": "object",
827 "required": [
828 "Second",
829 "First"
830 ],
831 "properties": {
832 "First": {
833 "type": "integer",
834 "format": "int32",
835 "default": 0
836 },
837 "Second": {
838 "type": "string",
839 "default": ""
840 }
841 }
842 },
843 "dummytype.StatusError": {
844 "type": "object",
845 "required": [
846 "Code",
847 "Message"
848 ],
849 "properties": {
850 "Code": {
851 "type": "integer",
852 "format": "int32",
853 "default": 0
854 },
855 "Message": {
856 "type": "string",
857 "default": ""
858 }
859 }
860 },
861 "dummytype.Waldo": {
862 "type": "object",
863 "required": [
864 "First",
865 "Second"
866 ],
867 "properties": {
868 "First": {
869 "type": "integer",
870 "format": "int32",
871 "default": 0
872 },
873 "Second": {
874 "type": "string",
875 "default": ""
876 }
877 }
878 },
879 "listtype.AtomicList": {
880 "type": "object",
881 "required": [
882 "Field"
883 ],
884 "properties": {
885 "Field": {
886 "type": "array",
887 "items": {
888 "type": "string",
889 "default": ""
890 },
891 "x-kubernetes-list-type": "atomic"
892 }
893 }
894 },
895 "listtype.Item": {
896 "type": "object",
897 "required": [
898 "Protocol",
899 "Port"
900 ],
901 "properties": {
902 "Port": {
903 "type": "integer",
904 "format": "int32",
905 "default": 0
906 },
907 "Protocol": {
908 "type": "string",
909 "default": ""
910 },
911 "a": {
912 "type": "integer",
913 "format": "int32",
914 "default": 0
915 },
916 "b": {
917 "type": "integer",
918 "format": "int32"
919 },
920 "c": {
921 "type": "integer",
922 "format": "int32",
923 "default": 0
924 }
925 }
926 },
927 "listtype.MapList": {
928 "type": "object",
929 "required": [
930 "Field"
931 ],
932 "properties": {
933 "Field": {
934 "type": "array",
935 "items": {
936 "default": {},
937 "allOf": [
938 {
939 "$ref": "#/components/schemas/listtype.Item"
940 }
941 ]
942 },
943 "x-kubernetes-list-map-keys": [
944 "port"
945 ],
946 "x-kubernetes-list-type": "map"
947 }
948 }
949 },
950 "listtype.SetList": {
951 "type": "object",
952 "required": [
953 "Field"
954 ],
955 "properties": {
956 "Field": {
957 "type": "array",
958 "items": {
959 "type": "string",
960 "default": ""
961 },
962 "x-kubernetes-list-type": "set"
963 }
964 }
965 },
966 "maptype.AtomicMap": {
967 "type": "object",
968 "required": [
969 "KeyValue"
970 ],
971 "properties": {
972 "KeyValue": {
973 "type": "object",
974 "additionalProperties": {
975 "type": "string",
976 "default": ""
977 },
978 "x-kubernetes-map-type": "atomic"
979 }
980 }
981 },
982 "maptype.GranularMap": {
983 "type": "object",
984 "required": [
985 "KeyValue"
986 ],
987 "properties": {
988 "KeyValue": {
989 "type": "object",
990 "additionalProperties": {
991 "type": "string",
992 "default": ""
993 },
994 "x-kubernetes-map-type": "granular"
995 }
996 }
997 },
998 "structtype.AtomicStruct": {
999 "type": "object",
1000 "required": [
1001 "Field",
1002 "OtherField"
1003 ],
1004 "properties": {
1005 "Field": {
1006 "default": {},
1007 "allOf": [
1008 {
1009 "$ref": "#/components/schemas/structtype.ContainedStruct"
1010 }
1011 ],
1012 "x-kubernetes-map-type": "atomic"
1013 },
1014 "OtherField": {
1015 "type": "integer",
1016 "format": "int32",
1017 "default": 0
1018 }
1019 }
1020 },
1021 "structtype.ContainedStruct": {
1022 "type": "object"
1023 },
1024 "structtype.DeclaredAtomicStruct": {
1025 "type": "object",
1026 "required": [
1027 "Field"
1028 ],
1029 "properties": {
1030 "Field": {
1031 "type": "integer",
1032 "format": "int32",
1033 "default": 0
1034 }
1035 },
1036 "x-kubernetes-map-type": "atomic"
1037 },
1038 "structtype.FieldLevelOverrideStruct": {
1039 "type": "object",
1040 "required": [
1041 "Field",
1042 "OtherField"
1043 ],
1044 "properties": {
1045 "Field": {
1046 "default": {},
1047 "allOf": [
1048 {
1049 "$ref": "#/components/schemas/structtype.DeclaredAtomicStruct"
1050 }
1051 ],
1052 "x-kubernetes-map-type": "atomic"
1053 },
1054 "OtherField": {
1055 "type": "integer",
1056 "format": "int32",
1057 "default": 0
1058 }
1059 }
1060 },
1061 "structtype.GranularStruct": {
1062 "type": "object",
1063 "required": [
1064 "Field",
1065 "OtherField"
1066 ],
1067 "properties": {
1068 "Field": {
1069 "default": {},
1070 "allOf": [
1071 {
1072 "$ref": "#/components/schemas/structtype.ContainedStruct"
1073 }
1074 ],
1075 "x-kubernetes-map-type": "granular"
1076 },
1077 "OtherField": {
1078 "type": "integer",
1079 "format": "int32",
1080 "default": 0
1081 }
1082 }
1083 },
1084 "uniontype.InlinedUnion": {
1085 "type": "object",
1086 "required": [
1087 "name",
1088 "type"
1089 ],
1090 "properties": {
1091 "alpha": {
1092 "type": "integer",
1093 "format": "int32"
1094 },
1095 "beta": {
1096 "type": "integer",
1097 "format": "int32"
1098 },
1099 "field1": {
1100 "type": "integer",
1101 "format": "int32"
1102 },
1103 "field2": {
1104 "type": "integer",
1105 "format": "int32"
1106 },
1107 "fieldA": {
1108 "type": "integer",
1109 "format": "int32"
1110 },
1111 "fieldB": {
1112 "type": "integer",
1113 "format": "int32"
1114 },
1115 "name": {
1116 "type": "string",
1117 "default": ""
1118 },
1119 "type": {
1120 "type": "string",
1121 "default": ""
1122 },
1123 "unionType": {
1124 "type": "string",
1125 "default": ""
1126 }
1127 },
1128 "x-kubernetes-unions": [
1129 {
1130 "discriminator": "unionType",
1131 "fields-to-discriminateBy": {
1132 "fieldA": "FieldA",
1133 "fieldB": "FieldB"
1134 }
1135 },
1136 {
1137 "discriminator": "type",
1138 "fields-to-discriminateBy": {
1139 "alpha": "Alpha",
1140 "beta": "Beta"
1141 }
1142 },
1143 {
1144 "fields-to-discriminateBy": {
1145 "field1": "Field1",
1146 "field2": "Field2"
1147 }
1148 }
1149 ]
1150 },
1151 "uniontype.TopLevelUnion": {
1152 "type": "object",
1153 "required": [
1154 "name"
1155 ],
1156 "properties": {
1157 "fieldA": {
1158 "type": "integer",
1159 "format": "int32"
1160 },
1161 "fieldB": {
1162 "type": "integer",
1163 "format": "int32"
1164 },
1165 "name": {
1166 "type": "string",
1167 "default": ""
1168 },
1169 "unionType": {
1170 "type": "string",
1171 "default": ""
1172 }
1173 },
1174 "x-kubernetes-unions": [
1175 {
1176 "discriminator": "unionType",
1177 "fields-to-discriminateBy": {
1178 "fieldA": "FieldA",
1179 "fieldB": "FieldB"
1180 }
1181 }
1182 ]
1183 },
1184 "valuevalidation.Foo": {
1185 "type": "object",
1186 "maxProperties": 5,
1187 "minProperties": 1,
1188 "required": [
1189 "StringValue",
1190 "NumberValue",
1191 "ArrayValue",
1192 "MapValue"
1193 ],
1194 "properties": {
1195 "ArrayValue": {
1196 "type": "array",
1197 "maxItems": 5,
1198 "minItems": 1,
1199 "uniqueItems": true,
1200 "items": {
1201 "type": "string",
1202 "default": ""
1203 }
1204 },
1205 "MapValue": {
1206 "type": "object",
1207 "maxProperties": 5,
1208 "minProperties": 1,
1209 "additionalProperties": {
1210 "type": "string",
1211 "default": ""
1212 }
1213 },
1214 "NumberValue": {
1215 "type": "number",
1216 "format": "double",
1217 "default": 0,
1218 "maximum": 5,
1219 "exclusiveMaximum": true,
1220 "minimum": 1,
1221 "exclusiveMinimum": true,
1222 "multipleOf": 2
1223 },
1224 "StringValue": {
1225 "type": "string",
1226 "default": "",
1227 "maxLength": 5,
1228 "minLength": 1,
1229 "pattern": "^a.*b$"
1230 },
1231 "celField": {
1232 "type": "string",
1233 "default": "",
1234 "x-kubernetes-validations": [
1235 {
1236 "message": "string message",
1237 "rule": "self.length() \u003e 0"
1238 },
1239 {
1240 "messageExpression": "self + ' hello'",
1241 "rule": "self.length() % 2 == 0"
1242 }
1243 ]
1244 }
1245 },
1246 "x-kubernetes-validations": [
1247 {
1248 "message": "foo",
1249 "rule": "self == oldSelf"
1250 }
1251 ]
1252 },
1253 "valuevalidation.Foo2": {
1254 "type": "object"
1255 },
1256 "valuevalidation.Foo3": {
1257 "description": "This one has a OneOf",
1258 "format": "string",
1259 "maxProperties": 5,
1260 "oneOf": [
1261 {
1262 "type": "number"
1263 },
1264 {
1265 "type": "string"
1266 }
1267 ],
1268 "x-kubernetes-validations": [
1269 {
1270 "message": "foo3",
1271 "rule": "self == oldSelf"
1272 }
1273 ]
1274 },
1275 "valuevalidation.Foo4": {
1276 "type": "integer"
1277 },
1278 "valuevalidation.Foo5": {
1279 "type": "object"
1280 }
1281 },
1282 "responses": {
1283 "NotFound": {
1284 "description": "Entity not found."
1285 }
1286 }
1287 }
1288 }