Debian Codegraph @

test/integration/testdata/golden.v2.json

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