@diplodoc/cli-tests 5.27.2 → 5.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,6 +33,7 @@ exports[`Regression > internal > filelist 1`] = `
|
|
|
33
33
|
"merge/toc.yaml",
|
|
34
34
|
"mermaid.md",
|
|
35
35
|
"openapi/index.md",
|
|
36
|
+
"openapi/test-controller/getHiddenTest.md",
|
|
36
37
|
"openapi/test-controller/getWithPayloadResponse.md",
|
|
37
38
|
"openapi/test-controller/index.md",
|
|
38
39
|
"redirects.yaml",
|
|
@@ -69,6 +70,7 @@ exports[`Regression > internal > filelist 2`] = `
|
|
|
69
70
|
"merge/toc.js",
|
|
70
71
|
"mermaid.html",
|
|
71
72
|
"openapi/index.html",
|
|
73
|
+
"openapi/test-controller/getHiddenTest.html",
|
|
72
74
|
"openapi/test-controller/getWithPayloadResponse.html",
|
|
73
75
|
"openapi/test-controller/index.html",
|
|
74
76
|
"sub/folder/item-1.html",
|
|
@@ -595,6 +597,105 @@ vcsPath: openapi/index.md
|
|
|
595
597
|
}
|
|
596
598
|
}
|
|
597
599
|
}
|
|
600
|
+
},
|
|
601
|
+
"/hidden-test": {
|
|
602
|
+
"get": {
|
|
603
|
+
"tags": [
|
|
604
|
+
"test-controller"
|
|
605
|
+
],
|
|
606
|
+
"summary": "Test x-hidden attribute",
|
|
607
|
+
"description": "Test various x-hidden scenarios",
|
|
608
|
+
"operationId": "getHiddenTest",
|
|
609
|
+
"responses": {
|
|
610
|
+
"200": {
|
|
611
|
+
"description": "Response with hidden fields",
|
|
612
|
+
"content": {
|
|
613
|
+
"application/json": {
|
|
614
|
+
"schema": {
|
|
615
|
+
"type": "object",
|
|
616
|
+
"description": "Response object with various hidden field scenarios",
|
|
617
|
+
"properties": {
|
|
618
|
+
"visibleField": {
|
|
619
|
+
"type": "string",
|
|
620
|
+
"description": "This field should be visible"
|
|
621
|
+
},
|
|
622
|
+
"directlyHiddenField": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"description": "This field should be hidden (direct x-hidden)",
|
|
625
|
+
"x-hidden": true
|
|
626
|
+
},
|
|
627
|
+
"refToHiddenField": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"description": "This field should be hidden",
|
|
630
|
+
"x-hidden": true
|
|
631
|
+
},
|
|
632
|
+
"refToHiddenObject": {
|
|
633
|
+
"type": "object",
|
|
634
|
+
"description": "This entire object should be hidden",
|
|
635
|
+
"x-hidden": true,
|
|
636
|
+
"properties": {
|
|
637
|
+
"secret": {
|
|
638
|
+
"type": "string"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"nestedObject": {
|
|
643
|
+
"type": "object",
|
|
644
|
+
"description": "Object with hidden properties",
|
|
645
|
+
"properties": {
|
|
646
|
+
"visibleNested": {
|
|
647
|
+
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
"hiddenNested": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"x-hidden": true
|
|
652
|
+
},
|
|
653
|
+
"refToHiddenInNested": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "This field should be hidden",
|
|
656
|
+
"x-hidden": true
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
"arrayWithHiddenItems": {
|
|
661
|
+
"type": "array",
|
|
662
|
+
"description": "Array with hidden item schema",
|
|
663
|
+
"items": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"description": "This field should be hidden",
|
|
666
|
+
"x-hidden": true
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"mixedVisibility": {
|
|
670
|
+
"type": "object",
|
|
671
|
+
"properties": {
|
|
672
|
+
"field1": {
|
|
673
|
+
"type": "string"
|
|
674
|
+
},
|
|
675
|
+
"field2": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"description": "This field should be hidden",
|
|
678
|
+
"x-hidden": true
|
|
679
|
+
},
|
|
680
|
+
"field3": {
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
"field4": {
|
|
684
|
+
"type": "string",
|
|
685
|
+
"x-hidden": true
|
|
686
|
+
},
|
|
687
|
+
"field5": {
|
|
688
|
+
"type": "string"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
598
699
|
}
|
|
599
700
|
},
|
|
600
701
|
"components": {
|
|
@@ -622,6 +723,101 @@ vcsPath: openapi/index.md
|
|
|
622
723
|
}
|
|
623
724
|
}
|
|
624
725
|
}
|
|
726
|
+
},
|
|
727
|
+
"HiddenField": {
|
|
728
|
+
"type": "string",
|
|
729
|
+
"description": "This field should be hidden",
|
|
730
|
+
"x-hidden": true
|
|
731
|
+
},
|
|
732
|
+
"HiddenObject": {
|
|
733
|
+
"type": "object",
|
|
734
|
+
"description": "This entire object should be hidden",
|
|
735
|
+
"x-hidden": true,
|
|
736
|
+
"properties": {
|
|
737
|
+
"secret": {
|
|
738
|
+
"type": "string"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"HiddenTestResponse": {
|
|
743
|
+
"type": "object",
|
|
744
|
+
"description": "Response object with various hidden field scenarios",
|
|
745
|
+
"properties": {
|
|
746
|
+
"visibleField": {
|
|
747
|
+
"type": "string",
|
|
748
|
+
"description": "This field should be visible"
|
|
749
|
+
},
|
|
750
|
+
"directlyHiddenField": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"description": "This field should be hidden (direct x-hidden)",
|
|
753
|
+
"x-hidden": true
|
|
754
|
+
},
|
|
755
|
+
"refToHiddenField": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"description": "This field should be hidden",
|
|
758
|
+
"x-hidden": true
|
|
759
|
+
},
|
|
760
|
+
"refToHiddenObject": {
|
|
761
|
+
"type": "object",
|
|
762
|
+
"description": "This entire object should be hidden",
|
|
763
|
+
"x-hidden": true,
|
|
764
|
+
"properties": {
|
|
765
|
+
"secret": {
|
|
766
|
+
"type": "string"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"nestedObject": {
|
|
771
|
+
"type": "object",
|
|
772
|
+
"description": "Object with hidden properties",
|
|
773
|
+
"properties": {
|
|
774
|
+
"visibleNested": {
|
|
775
|
+
"type": "string"
|
|
776
|
+
},
|
|
777
|
+
"hiddenNested": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"x-hidden": true
|
|
780
|
+
},
|
|
781
|
+
"refToHiddenInNested": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"description": "This field should be hidden",
|
|
784
|
+
"x-hidden": true
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"arrayWithHiddenItems": {
|
|
789
|
+
"type": "array",
|
|
790
|
+
"description": "Array with hidden item schema",
|
|
791
|
+
"items": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"description": "This field should be hidden",
|
|
794
|
+
"x-hidden": true
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"mixedVisibility": {
|
|
798
|
+
"type": "object",
|
|
799
|
+
"properties": {
|
|
800
|
+
"field1": {
|
|
801
|
+
"type": "string"
|
|
802
|
+
},
|
|
803
|
+
"field2": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"description": "This field should be hidden",
|
|
806
|
+
"x-hidden": true
|
|
807
|
+
},
|
|
808
|
+
"field3": {
|
|
809
|
+
"type": "string"
|
|
810
|
+
},
|
|
811
|
+
"field4": {
|
|
812
|
+
"type": "string",
|
|
813
|
+
"x-hidden": true
|
|
814
|
+
},
|
|
815
|
+
"field5": {
|
|
816
|
+
"type": "string"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
625
821
|
}
|
|
626
822
|
}
|
|
627
823
|
}
|
|
@@ -633,6 +829,204 @@ vcsPath: openapi/index.md
|
|
|
633
829
|
|
|
634
830
|
exports[`Regression > internal 27`] = `
|
|
635
831
|
"---
|
|
832
|
+
metadata:
|
|
833
|
+
- name: generator
|
|
834
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
835
|
+
__system:
|
|
836
|
+
testVar: test-value
|
|
837
|
+
vcsPath: openapi/test-controller/getHiddenTest.md
|
|
838
|
+
---
|
|
839
|
+
<div class="openapi">
|
|
840
|
+
|
|
841
|
+
# Test x-hidden attribute
|
|
842
|
+
|
|
843
|
+
<!-- markdownlint-disable-file -->
|
|
844
|
+
|
|
845
|
+
Test various x-hidden scenarios
|
|
846
|
+
|
|
847
|
+
## Request
|
|
848
|
+
|
|
849
|
+
<div class="openapi__requests">
|
|
850
|
+
|
|
851
|
+
<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
|
|
852
|
+
|
|
853
|
+
<div class="openapi__request">
|
|
854
|
+
|
|
855
|
+
GET {.openapi__method}
|
|
856
|
+
\`\`\`text translate=no
|
|
857
|
+
http://localhost:8080/hidden-test
|
|
858
|
+
\`\`\`
|
|
859
|
+
|
|
860
|
+
</div>
|
|
861
|
+
|
|
862
|
+
Generated server url
|
|
863
|
+
|
|
864
|
+
</div>
|
|
865
|
+
|
|
866
|
+
</div>
|
|
867
|
+
|
|
868
|
+
## Responses
|
|
869
|
+
|
|
870
|
+
<div class="openapi__response__code__200">
|
|
871
|
+
|
|
872
|
+
## 200 OK
|
|
873
|
+
|
|
874
|
+
Response with hidden fields
|
|
875
|
+
|
|
876
|
+
<div class="openapi-entity">
|
|
877
|
+
|
|
878
|
+
### Body
|
|
879
|
+
|
|
880
|
+
{% cut "application/json" %}
|
|
881
|
+
|
|
882
|
+
\`\`\`json translate=no
|
|
883
|
+
{
|
|
884
|
+
"visibleField": "example",
|
|
885
|
+
"nestedObject": {
|
|
886
|
+
"visibleNested": "example"
|
|
887
|
+
},
|
|
888
|
+
"arrayWithHiddenItems": [
|
|
889
|
+
"example"
|
|
890
|
+
],
|
|
891
|
+
"mixedVisibility": {
|
|
892
|
+
"field1": "example",
|
|
893
|
+
"field3": "example",
|
|
894
|
+
"field5": "example"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
\`\`\`
|
|
898
|
+
|
|
899
|
+
{% endcut %}
|
|
900
|
+
|
|
901
|
+
#|
|
|
902
|
+
|| **Name** | **Description** ||
|
|
903
|
+
||
|
|
904
|
+
|
|
905
|
+
_arrayWithHiddenItems_{.json-schema-reset .json-schema-property}
|
|
906
|
+
{.table-cell}|
|
|
907
|
+
**Type**: [HiddenField](#entity-HiddenField)[]
|
|
908
|
+
|
|
909
|
+
Array with hidden item schema
|
|
910
|
+
|
|
911
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
912
|
+
|
|
913
|
+
\`\`\`json translate=no
|
|
914
|
+
[
|
|
915
|
+
"example"
|
|
916
|
+
]
|
|
917
|
+
\`\`\`
|
|
918
|
+
|
|
919
|
+
{% endcut %}
|
|
920
|
+
{.table-cell}
|
|
921
|
+
||
|
|
922
|
+
||
|
|
923
|
+
|
|
924
|
+
_mixedVisibility_{.json-schema-reset .json-schema-property}
|
|
925
|
+
{.table-cell}|
|
|
926
|
+
{% cut "**Type**: object" %}
|
|
927
|
+
|
|
928
|
+
#|
|
|
929
|
+
||
|
|
930
|
+
|
|
931
|
+
_field1_{.json-schema-reset .json-schema-property}
|
|
932
|
+
{.table-cell}|
|
|
933
|
+
**Type**: string
|
|
934
|
+
|
|
935
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
936
|
+
{.table-cell}
|
|
937
|
+
||
|
|
938
|
+
||
|
|
939
|
+
|
|
940
|
+
_field3_{.json-schema-reset .json-schema-property}
|
|
941
|
+
{.table-cell}|
|
|
942
|
+
**Type**: string
|
|
943
|
+
|
|
944
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
945
|
+
{.table-cell}
|
|
946
|
+
||
|
|
947
|
+
||
|
|
948
|
+
|
|
949
|
+
_field5_{.json-schema-reset .json-schema-property}
|
|
950
|
+
{.table-cell}|
|
|
951
|
+
**Type**: string
|
|
952
|
+
|
|
953
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
954
|
+
{.table-cell}
|
|
955
|
+
||
|
|
956
|
+
|#{.json-schema-properties}
|
|
957
|
+
|
|
958
|
+
{% endcut %}
|
|
959
|
+
|
|
960
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
961
|
+
|
|
962
|
+
\`\`\`json translate=no
|
|
963
|
+
{
|
|
964
|
+
"field1": "example",
|
|
965
|
+
"field3": "example",
|
|
966
|
+
"field5": "example"
|
|
967
|
+
}
|
|
968
|
+
\`\`\`
|
|
969
|
+
|
|
970
|
+
{% endcut %}
|
|
971
|
+
{.table-cell}
|
|
972
|
+
||
|
|
973
|
+
||
|
|
974
|
+
|
|
975
|
+
_nestedObject_{.json-schema-reset .json-schema-property}
|
|
976
|
+
{.table-cell}|
|
|
977
|
+
{% cut "**Type**: object" %}
|
|
978
|
+
|
|
979
|
+
#|
|
|
980
|
+
||
|
|
981
|
+
|
|
982
|
+
_visibleNested_{.json-schema-reset .json-schema-property}
|
|
983
|
+
{.table-cell}|
|
|
984
|
+
**Type**: string
|
|
985
|
+
|
|
986
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
987
|
+
{.table-cell}
|
|
988
|
+
||
|
|
989
|
+
|#{.json-schema-properties}
|
|
990
|
+
|
|
991
|
+
{% endcut %}
|
|
992
|
+
|
|
993
|
+
Object with hidden properties
|
|
994
|
+
|
|
995
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
996
|
+
|
|
997
|
+
\`\`\`json translate=no
|
|
998
|
+
{
|
|
999
|
+
"visibleNested": "example"
|
|
1000
|
+
}
|
|
1001
|
+
\`\`\`
|
|
1002
|
+
|
|
1003
|
+
{% endcut %}
|
|
1004
|
+
{.table-cell}
|
|
1005
|
+
||
|
|
1006
|
+
||
|
|
1007
|
+
|
|
1008
|
+
_visibleField_{.json-schema-reset .json-schema-property}
|
|
1009
|
+
{.table-cell}|
|
|
1010
|
+
**Type**: string
|
|
1011
|
+
|
|
1012
|
+
This field should be visible
|
|
1013
|
+
|
|
1014
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1015
|
+
{.table-cell}
|
|
1016
|
+
||
|
|
1017
|
+
|#{.json-schema-properties}
|
|
1018
|
+
|
|
1019
|
+
</div>
|
|
1020
|
+
|
|
1021
|
+
</div>
|
|
1022
|
+
|
|
1023
|
+
</div>
|
|
1024
|
+
|
|
1025
|
+
[*Deprecated]: No longer supported, please use an alternative and newer version."
|
|
1026
|
+
`;
|
|
1027
|
+
|
|
1028
|
+
exports[`Regression > internal 28`] = `
|
|
1029
|
+
"---
|
|
636
1030
|
metadata:
|
|
637
1031
|
- name: generator
|
|
638
1032
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
@@ -713,7 +1107,7 @@ _Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
|
713
1107
|
[*Deprecated]: No longer supported, please use an alternative and newer version."
|
|
714
1108
|
`;
|
|
715
1109
|
|
|
716
|
-
exports[`Regression > internal
|
|
1110
|
+
exports[`Regression > internal 29`] = `
|
|
717
1111
|
"---
|
|
718
1112
|
metadata:
|
|
719
1113
|
- name: generator
|
|
@@ -729,10 +1123,11 @@ vcsPath: openapi/test-controller/index.md
|
|
|
729
1123
|
## Endpoints
|
|
730
1124
|
|
|
731
1125
|
- [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
|
|
1126
|
+
- [Test x-hidden attribute](getHiddenTest.md)
|
|
732
1127
|
"
|
|
733
1128
|
`;
|
|
734
1129
|
|
|
735
|
-
exports[`Regression > internal
|
|
1130
|
+
exports[`Regression > internal 30`] = `
|
|
736
1131
|
"files:
|
|
737
1132
|
- from: c.md
|
|
738
1133
|
to: d.md
|
|
@@ -742,7 +1137,7 @@ common:
|
|
|
742
1137
|
"
|
|
743
1138
|
`;
|
|
744
1139
|
|
|
745
|
-
exports[`Regression > internal
|
|
1140
|
+
exports[`Regression > internal 31`] = `
|
|
746
1141
|
"---
|
|
747
1142
|
metadata:
|
|
748
1143
|
- name: generator
|
|
@@ -759,7 +1154,7 @@ Item 1 text
|
|
|
759
1154
|
"
|
|
760
1155
|
`;
|
|
761
1156
|
|
|
762
|
-
exports[`Regression > internal
|
|
1157
|
+
exports[`Regression > internal 32`] = `
|
|
763
1158
|
"items:
|
|
764
1159
|
- name: Verbose root (index.yaml) will be transformed to index.html
|
|
765
1160
|
href: index.yaml
|
|
@@ -816,17 +1211,19 @@ exports[`Regression > internal 31`] = `
|
|
|
816
1211
|
href: openapi/test-controller/index.md
|
|
817
1212
|
- href: openapi/test-controller/getWithPayloadResponse.md
|
|
818
1213
|
name: Simple get operation. тест новой верстки 3
|
|
1214
|
+
- href: openapi/test-controller/getHiddenTest.md
|
|
1215
|
+
name: Test x-hidden attribute
|
|
819
1216
|
path: toc.yaml
|
|
820
1217
|
"
|
|
821
1218
|
`;
|
|
822
1219
|
|
|
823
|
-
exports[`Regression > internal
|
|
1220
|
+
exports[`Regression > internal 33`] = `
|
|
824
1221
|
"preprocess:
|
|
825
1222
|
mergeAutotitles: true
|
|
826
1223
|
"
|
|
827
1224
|
`;
|
|
828
1225
|
|
|
829
|
-
exports[`Regression > internal
|
|
1226
|
+
exports[`Regression > internal 34`] = `
|
|
830
1227
|
"<!DOCTYPE html>
|
|
831
1228
|
<html lang="ru" dir="ltr">
|
|
832
1229
|
<head>
|
|
@@ -854,7 +1251,7 @@ exports[`Regression > internal 33`] = `
|
|
|
854
1251
|
</html>"
|
|
855
1252
|
`;
|
|
856
1253
|
|
|
857
|
-
exports[`Regression > internal
|
|
1254
|
+
exports[`Regression > internal 35`] = `
|
|
858
1255
|
"<!DOCTYPE html>
|
|
859
1256
|
<html lang="ru" dir="ltr">
|
|
860
1257
|
<head>
|
|
@@ -882,7 +1279,7 @@ exports[`Regression > internal 34`] = `
|
|
|
882
1279
|
</html>"
|
|
883
1280
|
`;
|
|
884
1281
|
|
|
885
|
-
exports[`Regression > internal
|
|
1282
|
+
exports[`Regression > internal 36`] = `
|
|
886
1283
|
"<!DOCTYPE html>
|
|
887
1284
|
<html lang="ru" dir="ltr">
|
|
888
1285
|
<head>
|
|
@@ -910,7 +1307,7 @@ exports[`Regression > internal 35`] = `
|
|
|
910
1307
|
</html>"
|
|
911
1308
|
`;
|
|
912
1309
|
|
|
913
|
-
exports[`Regression > internal
|
|
1310
|
+
exports[`Regression > internal 37`] = `
|
|
914
1311
|
"<!DOCTYPE html>
|
|
915
1312
|
<html lang="ru" dir="ltr">
|
|
916
1313
|
<head>
|
|
@@ -938,7 +1335,7 @@ exports[`Regression > internal 36`] = `
|
|
|
938
1335
|
</html>"
|
|
939
1336
|
`;
|
|
940
1337
|
|
|
941
|
-
exports[`Regression > internal
|
|
1338
|
+
exports[`Regression > internal 38`] = `
|
|
942
1339
|
"<!DOCTYPE html>
|
|
943
1340
|
<html lang="ru" dir="ltr">
|
|
944
1341
|
<head>
|
|
@@ -966,7 +1363,7 @@ exports[`Regression > internal 37`] = `
|
|
|
966
1363
|
</html>"
|
|
967
1364
|
`;
|
|
968
1365
|
|
|
969
|
-
exports[`Regression > internal
|
|
1366
|
+
exports[`Regression > internal 39`] = `
|
|
970
1367
|
"<!DOCTYPE html>
|
|
971
1368
|
<html lang="ru" dir="ltr">
|
|
972
1369
|
<head>
|
|
@@ -994,7 +1391,7 @@ exports[`Regression > internal 38`] = `
|
|
|
994
1391
|
</html>"
|
|
995
1392
|
`;
|
|
996
1393
|
|
|
997
|
-
exports[`Regression > internal
|
|
1394
|
+
exports[`Regression > internal 40`] = `
|
|
998
1395
|
"<!DOCTYPE html>
|
|
999
1396
|
<html lang="ru" dir="ltr">
|
|
1000
1397
|
<head>
|
|
@@ -1022,7 +1419,7 @@ exports[`Regression > internal 39`] = `
|
|
|
1022
1419
|
</html>"
|
|
1023
1420
|
`;
|
|
1024
1421
|
|
|
1025
|
-
exports[`Regression > internal
|
|
1422
|
+
exports[`Regression > internal 41`] = `
|
|
1026
1423
|
"<!DOCTYPE html>
|
|
1027
1424
|
<html lang="ru" dir="ltr">
|
|
1028
1425
|
<head>
|
|
@@ -1050,7 +1447,7 @@ exports[`Regression > internal 40`] = `
|
|
|
1050
1447
|
</html>"
|
|
1051
1448
|
`;
|
|
1052
1449
|
|
|
1053
|
-
exports[`Regression > internal
|
|
1450
|
+
exports[`Regression > internal 42`] = `
|
|
1054
1451
|
"<!DOCTYPE html>
|
|
1055
1452
|
<html lang="ru" dir="ltr">
|
|
1056
1453
|
<head>
|
|
@@ -1078,7 +1475,7 @@ exports[`Regression > internal 41`] = `
|
|
|
1078
1475
|
</html>"
|
|
1079
1476
|
`;
|
|
1080
1477
|
|
|
1081
|
-
exports[`Regression > internal
|
|
1478
|
+
exports[`Regression > internal 43`] = `
|
|
1082
1479
|
"<!DOCTYPE html>
|
|
1083
1480
|
<html lang="ru" dir="ltr">
|
|
1084
1481
|
<head>
|
|
@@ -1106,7 +1503,7 @@ exports[`Regression > internal 42`] = `
|
|
|
1106
1503
|
</html>"
|
|
1107
1504
|
`;
|
|
1108
1505
|
|
|
1109
|
-
exports[`Regression > internal
|
|
1506
|
+
exports[`Regression > internal 44`] = `
|
|
1110
1507
|
"<!DOCTYPE html>
|
|
1111
1508
|
<html lang="ru" dir="ltr">
|
|
1112
1509
|
<head>
|
|
@@ -1134,7 +1531,7 @@ exports[`Regression > internal 43`] = `
|
|
|
1134
1531
|
</html>"
|
|
1135
1532
|
`;
|
|
1136
1533
|
|
|
1137
|
-
exports[`Regression > internal
|
|
1534
|
+
exports[`Regression > internal 45`] = `
|
|
1138
1535
|
"<!DOCTYPE html>
|
|
1139
1536
|
<html lang="ru" dir="ltr">
|
|
1140
1537
|
<head>
|
|
@@ -1162,7 +1559,7 @@ exports[`Regression > internal 44`] = `
|
|
|
1162
1559
|
</html>"
|
|
1163
1560
|
`;
|
|
1164
1561
|
|
|
1165
|
-
exports[`Regression > internal
|
|
1562
|
+
exports[`Regression > internal 46`] = `
|
|
1166
1563
|
"<!DOCTYPE html>
|
|
1167
1564
|
<html lang="ru" dir="ltr">
|
|
1168
1565
|
<head>
|
|
@@ -1190,7 +1587,7 @@ exports[`Regression > internal 45`] = `
|
|
|
1190
1587
|
</html>"
|
|
1191
1588
|
`;
|
|
1192
1589
|
|
|
1193
|
-
exports[`Regression > internal
|
|
1590
|
+
exports[`Regression > internal 47`] = `
|
|
1194
1591
|
"<!DOCTYPE html>
|
|
1195
1592
|
<html lang="ru" dir="ltr">
|
|
1196
1593
|
<head>
|
|
@@ -1218,7 +1615,7 @@ exports[`Regression > internal 46`] = `
|
|
|
1218
1615
|
</html>"
|
|
1219
1616
|
`;
|
|
1220
1617
|
|
|
1221
|
-
exports[`Regression > internal
|
|
1618
|
+
exports[`Regression > internal 48`] = `
|
|
1222
1619
|
"<!DOCTYPE html>
|
|
1223
1620
|
<html lang="ru" dir="ltr">
|
|
1224
1621
|
<head>
|
|
@@ -1246,7 +1643,7 @@ exports[`Regression > internal 47`] = `
|
|
|
1246
1643
|
</html>"
|
|
1247
1644
|
`;
|
|
1248
1645
|
|
|
1249
|
-
exports[`Regression > internal
|
|
1646
|
+
exports[`Regression > internal 49`] = `
|
|
1250
1647
|
"<!DOCTYPE html>
|
|
1251
1648
|
<html lang="ru" dir="ltr">
|
|
1252
1649
|
<head>
|
|
@@ -1274,7 +1671,7 @@ exports[`Regression > internal 48`] = `
|
|
|
1274
1671
|
</html>"
|
|
1275
1672
|
`;
|
|
1276
1673
|
|
|
1277
|
-
exports[`Regression > internal
|
|
1674
|
+
exports[`Regression > internal 50`] = `
|
|
1278
1675
|
"<!DOCTYPE html>
|
|
1279
1676
|
<html lang="ru" dir="ltr">
|
|
1280
1677
|
<head>
|
|
@@ -1302,9 +1699,9 @@ exports[`Regression > internal 49`] = `
|
|
|
1302
1699
|
</html>"
|
|
1303
1700
|
`;
|
|
1304
1701
|
|
|
1305
|
-
exports[`Regression > internal
|
|
1702
|
+
exports[`Regression > internal 51`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
|
|
1306
1703
|
|
|
1307
|
-
exports[`Regression > internal
|
|
1704
|
+
exports[`Regression > internal 52`] = `
|
|
1308
1705
|
"<!DOCTYPE html>
|
|
1309
1706
|
<html lang="ru" dir="ltr">
|
|
1310
1707
|
<head>
|
|
@@ -1332,7 +1729,7 @@ exports[`Regression > internal 51`] = `
|
|
|
1332
1729
|
</html>"
|
|
1333
1730
|
`;
|
|
1334
1731
|
|
|
1335
|
-
exports[`Regression > internal
|
|
1732
|
+
exports[`Regression > internal 53`] = `
|
|
1336
1733
|
"<!DOCTYPE html>
|
|
1337
1734
|
<html lang="ru" dir="ltr">
|
|
1338
1735
|
<head>
|
|
@@ -1347,7 +1744,7 @@ exports[`Regression > internal 52`] = `
|
|
|
1347
1744
|
<body class="g-root g-root_theme_light">
|
|
1348
1745
|
<div id="root"></div>
|
|
1349
1746
|
<script type="application/json" id="diplodoc-state">
|
|
1350
|
-
{"data":{"leading":false,"html":"<h1>OpenAPI definition</h1>/n<p><samp>version: v0</samp></p>/n<h2 id=\\"sections\\"><a href=\\"openapi/index.html#sections\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Sections</span></a>Sections</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/index.html\\">test-controller</a></li>/n</ul>/n<h2 id=\\"specification\\"><a href=\\"openapi/index.html#specification\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Specification</span></a>Specification</h2>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">Open API</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">{/n \\"openapi\\": \\"3.0.1\\",/n \\"info\\": {/n \\"title\\": \\"OpenAPI definition\\",/n \\"version\\": \\"v0\\"/n },/n \\"servers\\": [/n {/n \\"url\\": \\"http://localhost:8080\\",/n \\"description\\": \\"Generated server url\\"/n }/n ],/n \\"paths\\": {/n \\"/test\\": {/n \\"get\\": {/n \\"tags\\": [/n \\"test-controller\\"/n ],/n \\"summary\\": \\"Simple get operation. тест новой верстки 3\\",/n \\"description\\": \\"Defines a simple get operation with no inputs and a complex\\",/n \\"operationId\\": \\"getWithPayloadResponse\\",/n \\"responses\\": {/n \\"200\\": {/n \\"description\\": \\"200!!!!\\",/n \\"content\\": {/n \\"application/json\\": {/n \\"schema\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n }/n },/n \\"components\\": {/n \\"schemas\\": {/n \\"RecurceTop\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"RecurceMiddle\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"B\\": {/n \\"type\\": \\"array\\",/n \\"items\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n}/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"25\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-25\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-25\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-25.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/cut-extension.css"],"script":["_assets/cut-extension.js"],"vcsPath":"openapi/index.md"},"headings":[{"title":"Sections","href":"openapi/index.html#sections","level":2},{"title":"Specification","href":"openapi/index.html#specification","level":2}],"title":""},"router":{"pathname":"openapi/index","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1747
|
+
{"data":{"leading":false,"html":"<h1>OpenAPI definition</h1>/n<p><samp>version: v0</samp></p>/n<h2 id=\\"sections\\"><a href=\\"openapi/index.html#sections\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Sections</span></a>Sections</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/index.html\\">test-controller</a></li>/n</ul>/n<h2 id=\\"specification\\"><a href=\\"openapi/index.html#specification\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Specification</span></a>Specification</h2>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">Open API</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">{/n \\"openapi\\": \\"3.0.1\\",/n \\"info\\": {/n \\"title\\": \\"OpenAPI definition\\",/n \\"version\\": \\"v0\\"/n },/n \\"servers\\": [/n {/n \\"url\\": \\"http://localhost:8080\\",/n \\"description\\": \\"Generated server url\\"/n }/n ],/n \\"paths\\": {/n \\"/test\\": {/n \\"get\\": {/n \\"tags\\": [/n \\"test-controller\\"/n ],/n \\"summary\\": \\"Simple get operation. тест новой верстки 3\\",/n \\"description\\": \\"Defines a simple get operation with no inputs and a complex\\",/n \\"operationId\\": \\"getWithPayloadResponse\\",/n \\"responses\\": {/n \\"200\\": {/n \\"description\\": \\"200!!!!\\",/n \\"content\\": {/n \\"application/json\\": {/n \\"schema\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n },/n \\"/hidden-test\\": {/n \\"get\\": {/n \\"tags\\": [/n \\"test-controller\\"/n ],/n \\"summary\\": \\"Test x-hidden attribute\\",/n \\"description\\": \\"Test various x-hidden scenarios\\",/n \\"operationId\\": \\"getHiddenTest\\",/n \\"responses\\": {/n \\"200\\": {/n \\"description\\": \\"Response with hidden fields\\",/n \\"content\\": {/n \\"application/json\\": {/n \\"schema\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Response object with various hidden field scenarios\\",/n \\"properties\\": {/n \\"visibleField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be visible\\"/n },/n \\"directlyHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden (direct x-hidden)\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"nestedObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Object with hidden properties\\",/n \\"properties\\": {/n \\"visibleNested\\": {/n \\"type\\": \\"string\\"/n },/n \\"hiddenNested\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenInNested\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n }/n },/n \\"arrayWithHiddenItems\\": {/n \\"type\\": \\"array\\",/n \\"description\\": \\"Array with hidden item schema\\",/n \\"items\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n },/n \\"mixedVisibility\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"field1\\": {/n \\"type\\": \\"string\\"/n },/n \\"field2\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"field3\\": {/n \\"type\\": \\"string\\"/n },/n \\"field4\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"field5\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n }/n }/n }/n },/n \\"components\\": {/n \\"schemas\\": {/n \\"RecurceTop\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"RecurceMiddle\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"B\\": {/n \\"type\\": \\"array\\",/n \\"items\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n },/n \\"HiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"HiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"HiddenTestResponse\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Response object with various hidden field scenarios\\",/n \\"properties\\": {/n \\"visibleField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be visible\\"/n },/n \\"directlyHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden (direct x-hidden)\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"nestedObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Object with hidden properties\\",/n \\"properties\\": {/n \\"visibleNested\\": {/n \\"type\\": \\"string\\"/n },/n \\"hiddenNested\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenInNested\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n }/n },/n \\"arrayWithHiddenItems\\": {/n \\"type\\": \\"array\\",/n \\"description\\": \\"Array with hidden item schema\\",/n \\"items\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n },/n \\"mixedVisibility\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"field1\\": {/n \\"type\\": \\"string\\"/n },/n \\"field2\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"field3\\": {/n \\"type\\": \\"string\\"/n },/n \\"field4\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"field5\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n}/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"25\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-25\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-25\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-25.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/cut-extension.css"],"script":["_assets/cut-extension.js"],"vcsPath":"openapi/index.md"},"headings":[{"title":"Sections","href":"openapi/index.html#sections","level":2},{"title":"Specification","href":"openapi/index.html#specification","level":2}],"title":""},"router":{"pathname":"openapi/index","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1351
1748
|
</script>
|
|
1352
1749
|
<script type="application/javascript">
|
|
1353
1750
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -1362,7 +1759,37 @@ exports[`Regression > internal 52`] = `
|
|
|
1362
1759
|
</html>"
|
|
1363
1760
|
`;
|
|
1364
1761
|
|
|
1365
|
-
exports[`Regression > internal
|
|
1762
|
+
exports[`Regression > internal 54`] = `
|
|
1763
|
+
"<!DOCTYPE html>
|
|
1764
|
+
<html lang="ru" dir="ltr">
|
|
1765
|
+
<head>
|
|
1766
|
+
<meta charset="utf-8">
|
|
1767
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1768
|
+
<base href="../../" />
|
|
1769
|
+
<title></title>
|
|
1770
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1771
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1772
|
+
<link type="text/css" rel="stylesheet" href="_assets/cut-extension.css"/>
|
|
1773
|
+
</head>
|
|
1774
|
+
<body class="g-root g-root_theme_light">
|
|
1775
|
+
<div id="root"></div>
|
|
1776
|
+
<script type="application/json" id="diplodoc-state">
|
|
1777
|
+
{"data":{"leading":false,"html":"<div class=\\"openapi\\">/n<h1>Test x-hidden attribute</h1>/n/n<p>Test various x-hidden scenarios</p>/n<h2 id=\\"request\\"><a href=\\"openapi/test-controller/getHiddenTest.html#request\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Request</span></a>Request</h2>/n<div class=\\"openapi__requests\\">/n<div class=\\"openapi__request__wrapper\\" style=\\"--method:var(--dc-openapi-methods-get);margin-bottom:12px\\">/n<div class=\\"openapi__request\\">/n<p class=\\"openapi__method\\">GET</p>/n/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">http://localhost:8080/hidden-test/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"17\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-17\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-17\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-17.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div>/n<p>Generated server url</p>/n</div>/n</div>/n<h2 id=\\"responses\\"><a href=\\"openapi/test-controller/getHiddenTest.html#responses\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Responses</span></a>Responses</h2>/n<div class=\\"openapi__response__code__200\\">/n<h2 id=\\"200-ok\\"><a href=\\"openapi/test-controller/getHiddenTest.html#200-ok\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">200 OK</span></a>200 OK</h2>/n<p>Response with hidden fields</p>/n<div class=\\"openapi-entity\\">/n<h3 id=\\"body\\"><a href=\\"openapi/test-controller/getHiddenTest.html#body\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Body</span></a>Body</h3>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">application/json</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleField\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"nestedObject\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleNested\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">}</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"arrayWithHiddenItems\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">[</span>/n <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">]</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"mixedVisibility\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"field1\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field3\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field5\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">}</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"43\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-43\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-43\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-43.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td>/n<p><strong>Name</strong></p>/n</td>/n<td>/n<p><strong>Description</strong></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">arrayWithHiddenItems</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: <a href=\\"openapi/test-controller/getHiddenTest.html#entity-HiddenField\\">HiddenField</a>[]</p>/n<p>Array with hidden item schema</p>/n<details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">[</span>/n <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">]</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"78\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-78\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-78\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-78.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">mixedVisibility</em></p>/n</td>/n<td class=\\"table-cell\\">/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\"><strong>Type</strong>: object</summary><div class=\\"yfm-cut-content\\"><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field1</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-1">example</code></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field3</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-2">example</code></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field5</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-3">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div></details><details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"field1\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field3\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field5\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"151\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-151\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-151\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-151.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">nestedObject</em></p>/n</td>/n<td class=\\"table-cell\\">/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\"><strong>Type</strong>: object</summary><div class=\\"yfm-cut-content\\"><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">visibleNested</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-4">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div></details><p>Object with hidden properties</p>/n<details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleNested\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"197\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-197\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-197\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-197.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">visibleField</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p>This field should be visible</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-5">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div>/n</div>/n</div>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/cut-extension.css"],"script":["_assets/cut-extension.js"],"vcsPath":"openapi/test-controller/getHiddenTest.md"},"headings":[{"title":"Request","href":"openapi/test-controller/getHiddenTest.html#request","level":2},{"title":"Responses","href":"openapi/test-controller/getHiddenTest.html#responses","level":2},{"title":"200 OK","href":"openapi/test-controller/getHiddenTest.html#200-ok","level":2,"items":[{"title":"Body","href":"openapi/test-controller/getHiddenTest.html#body","level":3}]}],"title":""},"router":{"pathname":"openapi/test-controller/getHiddenTest","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1778
|
+
</script>
|
|
1779
|
+
<script type="application/javascript">
|
|
1780
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1781
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1782
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1783
|
+
})(data.innerText));
|
|
1784
|
+
window.STATIC_CONTENT = false;
|
|
1785
|
+
</script>
|
|
1786
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1787
|
+
<script type="application/javascript" defer src="_assets/cut-extension.js"></script>
|
|
1788
|
+
</body>
|
|
1789
|
+
</html>"
|
|
1790
|
+
`;
|
|
1791
|
+
|
|
1792
|
+
exports[`Regression > internal 55`] = `
|
|
1366
1793
|
"<!DOCTYPE html>
|
|
1367
1794
|
<html lang="ru" dir="ltr">
|
|
1368
1795
|
<head>
|
|
@@ -1392,7 +1819,7 @@ exports[`Regression > internal 53`] = `
|
|
|
1392
1819
|
</html>"
|
|
1393
1820
|
`;
|
|
1394
1821
|
|
|
1395
|
-
exports[`Regression > internal
|
|
1822
|
+
exports[`Regression > internal 56`] = `
|
|
1396
1823
|
"<!DOCTYPE html>
|
|
1397
1824
|
<html lang="ru" dir="ltr">
|
|
1398
1825
|
<head>
|
|
@@ -1406,7 +1833,7 @@ exports[`Regression > internal 54`] = `
|
|
|
1406
1833
|
<body class="g-root g-root_theme_light">
|
|
1407
1834
|
<div id="root"></div>
|
|
1408
1835
|
<script type="application/json" id="diplodoc-state">
|
|
1409
|
-
{"data":{"leading":false,"html":"<h2 id=\\"endpoints\\"><a href=\\"openapi/test-controller/index.html#endpoints\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Endpoints</span></a>Endpoints</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/getWithPayloadResponse.html\\">Simple get operation. тест новой верстки 3</a></li>/n</ul>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"openapi/test-controller/index.md"},"headings":[{"title":"Endpoints","href":"openapi/test-controller/index.html#endpoints","level":2}],"title":"test-controller"},"router":{"pathname":"openapi/test-controller/index","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1836
|
+
{"data":{"leading":false,"html":"<h2 id=\\"endpoints\\"><a href=\\"openapi/test-controller/index.html#endpoints\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Endpoints</span></a>Endpoints</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/getWithPayloadResponse.html\\">Simple get operation. тест новой верстки 3</a></li>/n<li><a href=\\"openapi/test-controller/getHiddenTest.html\\">Test x-hidden attribute</a></li>/n</ul>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"openapi/test-controller/index.md"},"headings":[{"title":"Endpoints","href":"openapi/test-controller/index.html#endpoints","level":2}],"title":"test-controller"},"router":{"pathname":"openapi/test-controller/index","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1410
1837
|
</script>
|
|
1411
1838
|
<script type="application/javascript">
|
|
1412
1839
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -1420,7 +1847,7 @@ exports[`Regression > internal 54`] = `
|
|
|
1420
1847
|
</html>"
|
|
1421
1848
|
`;
|
|
1422
1849
|
|
|
1423
|
-
exports[`Regression > internal
|
|
1850
|
+
exports[`Regression > internal 57`] = `
|
|
1424
1851
|
"<!DOCTYPE html>
|
|
1425
1852
|
<html lang="ru" dir="ltr">
|
|
1426
1853
|
<head>
|
|
@@ -1448,4 +1875,4 @@ exports[`Regression > internal 55`] = `
|
|
|
1448
1875
|
</html>"
|
|
1449
1876
|
`;
|
|
1450
1877
|
|
|
1451
|
-
exports[`Regression > internal
|
|
1878
|
+
exports[`Regression > internal 58`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"Entry as include","href":"entry-as-include.html","id":"UUID"},{"name":"Includer of entry","href":"includer-of-entry.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"},{"href":"openapi/test-controller/getHiddenTest.html","name":"Test x-hidden attribute","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
@@ -20,6 +20,20 @@ paths:
|
|
|
20
20
|
application/json:
|
|
21
21
|
schema:
|
|
22
22
|
$ref: '#/components/schemas/RecurceTop'
|
|
23
|
+
/hidden-test:
|
|
24
|
+
get:
|
|
25
|
+
tags:
|
|
26
|
+
- test-controller
|
|
27
|
+
summary: Test x-hidden attribute
|
|
28
|
+
description: Test various x-hidden scenarios
|
|
29
|
+
operationId: getHiddenTest
|
|
30
|
+
responses:
|
|
31
|
+
"200":
|
|
32
|
+
description: Response with hidden fields
|
|
33
|
+
content:
|
|
34
|
+
application/json:
|
|
35
|
+
schema:
|
|
36
|
+
$ref: '#/components/schemas/HiddenTestResponse'
|
|
23
37
|
components:
|
|
24
38
|
schemas:
|
|
25
39
|
RecurceTop:
|
|
@@ -35,3 +49,63 @@ components:
|
|
|
35
49
|
type: array
|
|
36
50
|
items:
|
|
37
51
|
$ref: '#/components/schemas/RecurceTop'
|
|
52
|
+
|
|
53
|
+
# Hidden field schemas for testing
|
|
54
|
+
HiddenField:
|
|
55
|
+
type: string
|
|
56
|
+
description: This field should be hidden
|
|
57
|
+
x-hidden: true
|
|
58
|
+
|
|
59
|
+
HiddenObject:
|
|
60
|
+
type: object
|
|
61
|
+
description: This entire object should be hidden
|
|
62
|
+
x-hidden: true
|
|
63
|
+
properties:
|
|
64
|
+
secret:
|
|
65
|
+
type: string
|
|
66
|
+
|
|
67
|
+
HiddenTestResponse:
|
|
68
|
+
type: object
|
|
69
|
+
description: Response object with various hidden field scenarios
|
|
70
|
+
properties:
|
|
71
|
+
visibleField:
|
|
72
|
+
type: string
|
|
73
|
+
description: This field should be visible
|
|
74
|
+
directlyHiddenField:
|
|
75
|
+
type: string
|
|
76
|
+
description: This field should be hidden (direct x-hidden)
|
|
77
|
+
x-hidden: true
|
|
78
|
+
refToHiddenField:
|
|
79
|
+
$ref: '#/components/schemas/HiddenField'
|
|
80
|
+
refToHiddenObject:
|
|
81
|
+
$ref: '#/components/schemas/HiddenObject'
|
|
82
|
+
nestedObject:
|
|
83
|
+
type: object
|
|
84
|
+
description: Object with hidden properties
|
|
85
|
+
properties:
|
|
86
|
+
visibleNested:
|
|
87
|
+
type: string
|
|
88
|
+
hiddenNested:
|
|
89
|
+
type: string
|
|
90
|
+
x-hidden: true
|
|
91
|
+
refToHiddenInNested:
|
|
92
|
+
$ref: '#/components/schemas/HiddenField'
|
|
93
|
+
arrayWithHiddenItems:
|
|
94
|
+
type: array
|
|
95
|
+
description: Array with hidden item schema
|
|
96
|
+
items:
|
|
97
|
+
$ref: '#/components/schemas/HiddenField'
|
|
98
|
+
mixedVisibility:
|
|
99
|
+
type: object
|
|
100
|
+
properties:
|
|
101
|
+
field1:
|
|
102
|
+
type: string
|
|
103
|
+
field2:
|
|
104
|
+
$ref: '#/components/schemas/HiddenField'
|
|
105
|
+
field3:
|
|
106
|
+
type: string
|
|
107
|
+
field4:
|
|
108
|
+
type: string
|
|
109
|
+
x-hidden: true
|
|
110
|
+
field5:
|
|
111
|
+
type: string
|