@nldoc/openapi-test-set-generator 1.2.18

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.
Files changed (97) hide show
  1. package/LICENSE.txt +287 -0
  2. package/README.md +9 -0
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +5 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +5 -0
  7. package/dist/commands/extract-examples.d.ts +9 -0
  8. package/dist/commands/extract-examples.js +42 -0
  9. package/dist/commands/extract-examples.js.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.js +4 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/lib/condition/schema/schemaPropertyChecker.d.ts +14 -0
  14. package/dist/lib/condition/schema/schemaPropertyChecker.js +44 -0
  15. package/dist/lib/condition/schema/schemaPropertyChecker.js.map +1 -0
  16. package/dist/lib/condition/schemaPropertySelector.d.ts +11 -0
  17. package/dist/lib/condition/schemaPropertySelector.js +12 -0
  18. package/dist/lib/condition/schemaPropertySelector.js.map +1 -0
  19. package/dist/lib/condition/value/numberChecker.d.ts +2 -0
  20. package/dist/lib/condition/value/numberChecker.js +34 -0
  21. package/dist/lib/condition/value/numberChecker.js.map +1 -0
  22. package/dist/lib/condition/value/simpleEqualityChecker.d.ts +5 -0
  23. package/dist/lib/condition/value/simpleEqualityChecker.js +17 -0
  24. package/dist/lib/condition/value/simpleEqualityChecker.js.map +1 -0
  25. package/dist/lib/importOpenAPIFile.d.ts +10 -0
  26. package/dist/lib/importOpenAPIFile.js +11 -0
  27. package/dist/lib/importOpenAPIFile.js.map +1 -0
  28. package/dist/lib/modification/createExampleVariantsFromSchemaOnQueries.d.ts +16 -0
  29. package/dist/lib/modification/createExampleVariantsFromSchemaOnQueries.js +15 -0
  30. package/dist/lib/modification/createExampleVariantsFromSchemaOnQueries.js.map +1 -0
  31. package/dist/lib/modification/createExampleVariantsFromSchemaOnQuery.d.ts +12 -0
  32. package/dist/lib/modification/createExampleVariantsFromSchemaOnQuery.js +11 -0
  33. package/dist/lib/modification/createExampleVariantsFromSchemaOnQuery.js.map +1 -0
  34. package/dist/lib/modification/createExampleVariantsFromSchemasOnQueries.d.ts +19 -0
  35. package/dist/lib/modification/createExampleVariantsFromSchemasOnQueries.js +48 -0
  36. package/dist/lib/modification/createExampleVariantsFromSchemasOnQueries.js.map +1 -0
  37. package/dist/lib/modification/modifyPropertyInExample.d.ts +12 -0
  38. package/dist/lib/modification/modifyPropertyInExample.js +24 -0
  39. package/dist/lib/modification/modifyPropertyInExample.js.map +1 -0
  40. package/dist/lib/modification/modifyPropertyInSchemaExamples.d.ts +15 -0
  41. package/dist/lib/modification/modifyPropertyInSchemaExamples.js +22 -0
  42. package/dist/lib/modification/modifyPropertyInSchemaExamples.js.map +1 -0
  43. package/dist/lib/modification/truncateString.d.ts +9 -0
  44. package/dist/lib/modification/truncateString.js +12 -0
  45. package/dist/lib/modification/truncateString.js.map +1 -0
  46. package/dist/lib/openapi/PropertyResolver.d.ts +23 -0
  47. package/dist/lib/openapi/PropertyResolver.js +37 -0
  48. package/dist/lib/openapi/PropertyResolver.js.map +1 -0
  49. package/dist/lib/openapi/SchemaPropertyResolver.d.ts +21 -0
  50. package/dist/lib/openapi/SchemaPropertyResolver.js +33 -0
  51. package/dist/lib/openapi/SchemaPropertyResolver.js.map +1 -0
  52. package/dist/lib/openapi/extractObjectSchemasWithExamples.d.ts +8 -0
  53. package/dist/lib/openapi/extractObjectSchemasWithExamples.js +16 -0
  54. package/dist/lib/openapi/extractObjectSchemasWithExamples.js.map +1 -0
  55. package/dist/lib/openapi/schemaObjectHasProperty.d.ts +6 -0
  56. package/dist/lib/openapi/schemaObjectHasProperty.js +8 -0
  57. package/dist/lib/openapi/schemaObjectHasProperty.js.map +1 -0
  58. package/dist/lib/writeJsonToFile.d.ts +8 -0
  59. package/dist/lib/writeJsonToFile.js +13 -0
  60. package/dist/lib/writeJsonToFile.js.map +1 -0
  61. package/dist/types/Defined.d.ts +2 -0
  62. package/dist/types/Defined.js +2 -0
  63. package/dist/types/Defined.js.map +1 -0
  64. package/dist/types/InputFile.d.ts +432 -0
  65. package/dist/types/InputFile.js +24 -0
  66. package/dist/types/InputFile.js.map +1 -0
  67. package/dist/types/Json.d.ts +9 -0
  68. package/dist/types/Json.js +5 -0
  69. package/dist/types/Json.js.map +1 -0
  70. package/dist/types/TestScenario.d.ts +12 -0
  71. package/dist/types/TestScenario.js +7 -0
  72. package/dist/types/TestScenario.js.map +1 -0
  73. package/dist/types/TestScenariosFile.d.ts +12 -0
  74. package/dist/types/TestScenariosFile.js +4 -0
  75. package/dist/types/TestScenariosFile.js.map +1 -0
  76. package/dist/types/condition/IntegerCondition.d.ts +27 -0
  77. package/dist/types/condition/IntegerCondition.js +15 -0
  78. package/dist/types/condition/IntegerCondition.js.map +1 -0
  79. package/dist/types/condition/SchemaPropertySelectorCondition.d.ts +144 -0
  80. package/dist/types/condition/SchemaPropertySelectorCondition.js +15 -0
  81. package/dist/types/condition/SchemaPropertySelectorCondition.js.map +1 -0
  82. package/dist/types/condition/StringCondition.d.ts +15 -0
  83. package/dist/types/condition/StringCondition.js +10 -0
  84. package/dist/types/condition/StringCondition.js.map +1 -0
  85. package/dist/types/modification/SchemaPropertyVariantAction.d.ts +13 -0
  86. package/dist/types/modification/SchemaPropertyVariantAction.js +7 -0
  87. package/dist/types/modification/SchemaPropertyVariantAction.js.map +1 -0
  88. package/dist/types/modification/SchemaPropertyVariantQuery.d.ts +233 -0
  89. package/dist/types/modification/SchemaPropertyVariantQuery.js +11 -0
  90. package/dist/types/modification/SchemaPropertyVariantQuery.js.map +1 -0
  91. package/dist/types/openapi/HasObjectExamples.d.ts +4 -0
  92. package/dist/types/openapi/HasObjectExamples.js +2 -0
  93. package/dist/types/openapi/HasObjectExamples.js.map +1 -0
  94. package/dist/types/openapi/HasResolvedProperties.d.ts +4 -0
  95. package/dist/types/openapi/HasResolvedProperties.js +2 -0
  96. package/dist/types/openapi/HasResolvedProperties.js.map +1 -0
  97. package/package.json +71 -0
@@ -0,0 +1,144 @@
1
+ import { z } from 'zod';
2
+ export declare const SchemaPropertySelectorCondition: z.ZodObject<{
3
+ readonly required: z.ZodOptional<z.ZodBoolean>;
4
+ readonly hasDefault: z.ZodOptional<z.ZodBoolean>;
5
+ readonly format: z.ZodOptional<z.ZodObject<{
6
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ $eq?: string | null | undefined;
11
+ $ne?: string | null | undefined;
12
+ $in?: (string | null)[] | undefined;
13
+ }, {
14
+ $eq?: string | null | undefined;
15
+ $ne?: string | null | undefined;
16
+ $in?: (string | null)[] | undefined;
17
+ }>>;
18
+ readonly type: z.ZodOptional<z.ZodObject<{
19
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ $eq?: string | null | undefined;
24
+ $ne?: string | null | undefined;
25
+ $in?: (string | null)[] | undefined;
26
+ }, {
27
+ $eq?: string | null | undefined;
28
+ $ne?: string | null | undefined;
29
+ $in?: (string | null)[] | undefined;
30
+ }>>;
31
+ readonly minLength: z.ZodOptional<z.ZodObject<{
32
+ $gte: z.ZodOptional<z.ZodNumber>;
33
+ $lte: z.ZodOptional<z.ZodNumber>;
34
+ $lt: z.ZodOptional<z.ZodNumber>;
35
+ $gt: z.ZodOptional<z.ZodNumber>;
36
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ $gte?: number | undefined;
41
+ $lte?: number | undefined;
42
+ $lt?: number | undefined;
43
+ $gt?: number | undefined;
44
+ $eq?: number | null | undefined;
45
+ $ne?: number | null | undefined;
46
+ $in?: (number | null)[] | undefined;
47
+ }, {
48
+ $gte?: number | undefined;
49
+ $lte?: number | undefined;
50
+ $lt?: number | undefined;
51
+ $gt?: number | undefined;
52
+ $eq?: number | null | undefined;
53
+ $ne?: number | null | undefined;
54
+ $in?: (number | null)[] | undefined;
55
+ }>>;
56
+ readonly maxLength: z.ZodOptional<z.ZodObject<{
57
+ $gte: z.ZodOptional<z.ZodNumber>;
58
+ $lte: z.ZodOptional<z.ZodNumber>;
59
+ $lt: z.ZodOptional<z.ZodNumber>;
60
+ $gt: z.ZodOptional<z.ZodNumber>;
61
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
64
+ }, "strict", z.ZodTypeAny, {
65
+ $gte?: number | undefined;
66
+ $lte?: number | undefined;
67
+ $lt?: number | undefined;
68
+ $gt?: number | undefined;
69
+ $eq?: number | null | undefined;
70
+ $ne?: number | null | undefined;
71
+ $in?: (number | null)[] | undefined;
72
+ }, {
73
+ $gte?: number | undefined;
74
+ $lte?: number | undefined;
75
+ $lt?: number | undefined;
76
+ $gt?: number | undefined;
77
+ $eq?: number | null | undefined;
78
+ $ne?: number | null | undefined;
79
+ $in?: (number | null)[] | undefined;
80
+ }>>;
81
+ }, "strict", z.ZodTypeAny, {
82
+ type?: {
83
+ $eq?: string | null | undefined;
84
+ $ne?: string | null | undefined;
85
+ $in?: (string | null)[] | undefined;
86
+ } | undefined;
87
+ format?: {
88
+ $eq?: string | null | undefined;
89
+ $ne?: string | null | undefined;
90
+ $in?: (string | null)[] | undefined;
91
+ } | undefined;
92
+ maxLength?: {
93
+ $gte?: number | undefined;
94
+ $lte?: number | undefined;
95
+ $lt?: number | undefined;
96
+ $gt?: number | undefined;
97
+ $eq?: number | null | undefined;
98
+ $ne?: number | null | undefined;
99
+ $in?: (number | null)[] | undefined;
100
+ } | undefined;
101
+ minLength?: {
102
+ $gte?: number | undefined;
103
+ $lte?: number | undefined;
104
+ $lt?: number | undefined;
105
+ $gt?: number | undefined;
106
+ $eq?: number | null | undefined;
107
+ $ne?: number | null | undefined;
108
+ $in?: (number | null)[] | undefined;
109
+ } | undefined;
110
+ required?: boolean | undefined;
111
+ hasDefault?: boolean | undefined;
112
+ }, {
113
+ type?: {
114
+ $eq?: string | null | undefined;
115
+ $ne?: string | null | undefined;
116
+ $in?: (string | null)[] | undefined;
117
+ } | undefined;
118
+ format?: {
119
+ $eq?: string | null | undefined;
120
+ $ne?: string | null | undefined;
121
+ $in?: (string | null)[] | undefined;
122
+ } | undefined;
123
+ maxLength?: {
124
+ $gte?: number | undefined;
125
+ $lte?: number | undefined;
126
+ $lt?: number | undefined;
127
+ $gt?: number | undefined;
128
+ $eq?: number | null | undefined;
129
+ $ne?: number | null | undefined;
130
+ $in?: (number | null)[] | undefined;
131
+ } | undefined;
132
+ minLength?: {
133
+ $gte?: number | undefined;
134
+ $lte?: number | undefined;
135
+ $lt?: number | undefined;
136
+ $gt?: number | undefined;
137
+ $eq?: number | null | undefined;
138
+ $ne?: number | null | undefined;
139
+ $in?: (number | null)[] | undefined;
140
+ } | undefined;
141
+ required?: boolean | undefined;
142
+ hasDefault?: boolean | undefined;
143
+ }>;
144
+ export type SchemaPropertySelectorCondition = z.infer<typeof SchemaPropertySelectorCondition>;
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { IntegerCondition } from './IntegerCondition.js';
3
+ import { StringCondition } from './StringCondition.js';
4
+ export const SchemaPropertySelectorCondition = z
5
+ .object({
6
+ required: z.boolean(),
7
+ hasDefault: z.boolean(),
8
+ format: StringCondition,
9
+ type: StringCondition,
10
+ minLength: IntegerCondition,
11
+ maxLength: IntegerCondition,
12
+ })
13
+ .strict()
14
+ .partial();
15
+ //# sourceMappingURL=SchemaPropertySelectorCondition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertySelectorCondition.js","sourceRoot":"","sources":["../../../src/types/condition/SchemaPropertySelectorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACJ,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,eAAe;IACrB,SAAS,EAAE,gBAAgB;IAC3B,SAAS,EAAE,gBAAgB;CACrB,CAAC;KACV,MAAM,EAAE;KACR,OAAO,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const StringCondition: z.ZodObject<{
3
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ $eq?: string | null | undefined;
8
+ $ne?: string | null | undefined;
9
+ $in?: (string | null)[] | undefined;
10
+ }, {
11
+ $eq?: string | null | undefined;
12
+ $ne?: string | null | undefined;
13
+ $in?: (string | null)[] | undefined;
14
+ }>;
15
+ export type StringCondition = z.infer<typeof StringCondition>;
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export const StringCondition = z
3
+ .object({
4
+ $eq: z.string().nullable(),
5
+ $ne: z.string().nullable(),
6
+ $in: z.array(z.string().nullable()),
7
+ })
8
+ .partial()
9
+ .strict();
10
+ //# sourceMappingURL=StringCondition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringCondition.js","sourceRoot":"","sources":["../../../src/types/condition/StringCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC3B,MAAM,CAAC;IACJ,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;CACtC,CAAC;KACD,OAAO,EAAE;KACT,MAAM,EAAE,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { Json } from '../Json.js';
3
+ export declare const SchemaPropertyVariantAction: z.ZodDefault<z.ZodObject<{
4
+ set: z.ZodOptional<z.ZodType<Json, z.ZodTypeDef, Json>>;
5
+ remove: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ set?: Json | undefined;
8
+ remove?: boolean | undefined;
9
+ }, {
10
+ set?: Json | undefined;
11
+ remove?: boolean | undefined;
12
+ }>>;
13
+ export type SchemaPropertyVariantAction = z.infer<typeof SchemaPropertyVariantAction>;
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { Json } from '../Json.js';
3
+ export const SchemaPropertyVariantAction = z
4
+ .object({ set: Json, remove: z.boolean() })
5
+ .partial()
6
+ .default({});
7
+ //# sourceMappingURL=SchemaPropertyVariantAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyVariantAction.js","sourceRoot":"","sources":["../../../src/types/modification/SchemaPropertyVariantAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACvC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;KAC1C,OAAO,EAAE;KACT,OAAO,CAAC,EAAE,CAAC,CAAA"}
@@ -0,0 +1,233 @@
1
+ import { z } from 'zod';
2
+ export declare const SchemaPropertyVariantQuery: z.ZodObject<{
3
+ where: z.ZodDefault<z.ZodObject<{
4
+ readonly required: z.ZodOptional<z.ZodBoolean>;
5
+ readonly hasDefault: z.ZodOptional<z.ZodBoolean>;
6
+ readonly format: z.ZodOptional<z.ZodObject<{
7
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ $eq?: string | null | undefined;
12
+ $ne?: string | null | undefined;
13
+ $in?: (string | null)[] | undefined;
14
+ }, {
15
+ $eq?: string | null | undefined;
16
+ $ne?: string | null | undefined;
17
+ $in?: (string | null)[] | undefined;
18
+ }>>;
19
+ readonly type: z.ZodOptional<z.ZodObject<{
20
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
23
+ }, "strict", z.ZodTypeAny, {
24
+ $eq?: string | null | undefined;
25
+ $ne?: string | null | undefined;
26
+ $in?: (string | null)[] | undefined;
27
+ }, {
28
+ $eq?: string | null | undefined;
29
+ $ne?: string | null | undefined;
30
+ $in?: (string | null)[] | undefined;
31
+ }>>;
32
+ readonly minLength: z.ZodOptional<z.ZodObject<{
33
+ $gte: z.ZodOptional<z.ZodNumber>;
34
+ $lte: z.ZodOptional<z.ZodNumber>;
35
+ $lt: z.ZodOptional<z.ZodNumber>;
36
+ $gt: z.ZodOptional<z.ZodNumber>;
37
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ $gte?: number | undefined;
42
+ $lte?: number | undefined;
43
+ $lt?: number | undefined;
44
+ $gt?: number | undefined;
45
+ $eq?: number | null | undefined;
46
+ $ne?: number | null | undefined;
47
+ $in?: (number | null)[] | undefined;
48
+ }, {
49
+ $gte?: number | undefined;
50
+ $lte?: number | undefined;
51
+ $lt?: number | undefined;
52
+ $gt?: number | undefined;
53
+ $eq?: number | null | undefined;
54
+ $ne?: number | null | undefined;
55
+ $in?: (number | null)[] | undefined;
56
+ }>>;
57
+ readonly maxLength: z.ZodOptional<z.ZodObject<{
58
+ $gte: z.ZodOptional<z.ZodNumber>;
59
+ $lte: z.ZodOptional<z.ZodNumber>;
60
+ $lt: z.ZodOptional<z.ZodNumber>;
61
+ $gt: z.ZodOptional<z.ZodNumber>;
62
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
65
+ }, "strict", z.ZodTypeAny, {
66
+ $gte?: number | undefined;
67
+ $lte?: number | undefined;
68
+ $lt?: number | undefined;
69
+ $gt?: number | undefined;
70
+ $eq?: number | null | undefined;
71
+ $ne?: number | null | undefined;
72
+ $in?: (number | null)[] | undefined;
73
+ }, {
74
+ $gte?: number | undefined;
75
+ $lte?: number | undefined;
76
+ $lt?: number | undefined;
77
+ $gt?: number | undefined;
78
+ $eq?: number | null | undefined;
79
+ $ne?: number | null | undefined;
80
+ $in?: (number | null)[] | undefined;
81
+ }>>;
82
+ }, "strict", z.ZodTypeAny, {
83
+ type?: {
84
+ $eq?: string | null | undefined;
85
+ $ne?: string | null | undefined;
86
+ $in?: (string | null)[] | undefined;
87
+ } | undefined;
88
+ format?: {
89
+ $eq?: string | null | undefined;
90
+ $ne?: string | null | undefined;
91
+ $in?: (string | null)[] | undefined;
92
+ } | undefined;
93
+ maxLength?: {
94
+ $gte?: number | undefined;
95
+ $lte?: number | undefined;
96
+ $lt?: number | undefined;
97
+ $gt?: number | undefined;
98
+ $eq?: number | null | undefined;
99
+ $ne?: number | null | undefined;
100
+ $in?: (number | null)[] | undefined;
101
+ } | undefined;
102
+ minLength?: {
103
+ $gte?: number | undefined;
104
+ $lte?: number | undefined;
105
+ $lt?: number | undefined;
106
+ $gt?: number | undefined;
107
+ $eq?: number | null | undefined;
108
+ $ne?: number | null | undefined;
109
+ $in?: (number | null)[] | undefined;
110
+ } | undefined;
111
+ required?: boolean | undefined;
112
+ hasDefault?: boolean | undefined;
113
+ }, {
114
+ type?: {
115
+ $eq?: string | null | undefined;
116
+ $ne?: string | null | undefined;
117
+ $in?: (string | null)[] | undefined;
118
+ } | undefined;
119
+ format?: {
120
+ $eq?: string | null | undefined;
121
+ $ne?: string | null | undefined;
122
+ $in?: (string | null)[] | undefined;
123
+ } | undefined;
124
+ maxLength?: {
125
+ $gte?: number | undefined;
126
+ $lte?: number | undefined;
127
+ $lt?: number | undefined;
128
+ $gt?: number | undefined;
129
+ $eq?: number | null | undefined;
130
+ $ne?: number | null | undefined;
131
+ $in?: (number | null)[] | undefined;
132
+ } | undefined;
133
+ minLength?: {
134
+ $gte?: number | undefined;
135
+ $lte?: number | undefined;
136
+ $lt?: number | undefined;
137
+ $gt?: number | undefined;
138
+ $eq?: number | null | undefined;
139
+ $ne?: number | null | undefined;
140
+ $in?: (number | null)[] | undefined;
141
+ } | undefined;
142
+ required?: boolean | undefined;
143
+ hasDefault?: boolean | undefined;
144
+ }>>;
145
+ do: z.ZodDefault<z.ZodObject<{
146
+ set: z.ZodOptional<z.ZodType<import("../Json.js").Json, z.ZodTypeDef, import("../Json.js").Json>>;
147
+ remove: z.ZodOptional<z.ZodBoolean>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ set?: import("../Json.js").Json | undefined;
150
+ remove?: boolean | undefined;
151
+ }, {
152
+ set?: import("../Json.js").Json | undefined;
153
+ remove?: boolean | undefined;
154
+ }>>;
155
+ valid: z.ZodBoolean;
156
+ }, "strict", z.ZodTypeAny, {
157
+ valid: boolean;
158
+ where: {
159
+ type?: {
160
+ $eq?: string | null | undefined;
161
+ $ne?: string | null | undefined;
162
+ $in?: (string | null)[] | undefined;
163
+ } | undefined;
164
+ format?: {
165
+ $eq?: string | null | undefined;
166
+ $ne?: string | null | undefined;
167
+ $in?: (string | null)[] | undefined;
168
+ } | undefined;
169
+ maxLength?: {
170
+ $gte?: number | undefined;
171
+ $lte?: number | undefined;
172
+ $lt?: number | undefined;
173
+ $gt?: number | undefined;
174
+ $eq?: number | null | undefined;
175
+ $ne?: number | null | undefined;
176
+ $in?: (number | null)[] | undefined;
177
+ } | undefined;
178
+ minLength?: {
179
+ $gte?: number | undefined;
180
+ $lte?: number | undefined;
181
+ $lt?: number | undefined;
182
+ $gt?: number | undefined;
183
+ $eq?: number | null | undefined;
184
+ $ne?: number | null | undefined;
185
+ $in?: (number | null)[] | undefined;
186
+ } | undefined;
187
+ required?: boolean | undefined;
188
+ hasDefault?: boolean | undefined;
189
+ };
190
+ do: {
191
+ set?: import("../Json.js").Json | undefined;
192
+ remove?: boolean | undefined;
193
+ };
194
+ }, {
195
+ valid: boolean;
196
+ where?: {
197
+ type?: {
198
+ $eq?: string | null | undefined;
199
+ $ne?: string | null | undefined;
200
+ $in?: (string | null)[] | undefined;
201
+ } | undefined;
202
+ format?: {
203
+ $eq?: string | null | undefined;
204
+ $ne?: string | null | undefined;
205
+ $in?: (string | null)[] | undefined;
206
+ } | undefined;
207
+ maxLength?: {
208
+ $gte?: number | undefined;
209
+ $lte?: number | undefined;
210
+ $lt?: number | undefined;
211
+ $gt?: number | undefined;
212
+ $eq?: number | null | undefined;
213
+ $ne?: number | null | undefined;
214
+ $in?: (number | null)[] | undefined;
215
+ } | undefined;
216
+ minLength?: {
217
+ $gte?: number | undefined;
218
+ $lte?: number | undefined;
219
+ $lt?: number | undefined;
220
+ $gt?: number | undefined;
221
+ $eq?: number | null | undefined;
222
+ $ne?: number | null | undefined;
223
+ $in?: (number | null)[] | undefined;
224
+ } | undefined;
225
+ required?: boolean | undefined;
226
+ hasDefault?: boolean | undefined;
227
+ } | undefined;
228
+ do?: {
229
+ set?: import("../Json.js").Json | undefined;
230
+ remove?: boolean | undefined;
231
+ } | undefined;
232
+ }>;
233
+ export type SchemaPropertyVariantQuery = z.infer<typeof SchemaPropertyVariantQuery>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { SchemaPropertySelectorCondition } from '../condition/SchemaPropertySelectorCondition.js';
3
+ import { SchemaPropertyVariantAction } from './SchemaPropertyVariantAction.js';
4
+ export const SchemaPropertyVariantQuery = z
5
+ .object({
6
+ where: SchemaPropertySelectorCondition.default({}),
7
+ do: SchemaPropertyVariantAction,
8
+ valid: z.boolean(),
9
+ })
10
+ .strict();
11
+ //# sourceMappingURL=SchemaPropertyVariantQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyVariantQuery.js","sourceRoot":"","sources":["../../../src/types/modification/SchemaPropertyVariantQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAA;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACtC,MAAM,CAAC;IACJ,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,EAAE,EAAE,2BAA2B;IAC/B,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type JsonObject } from '../Json.js';
2
+ export interface HasObjectExamples {
3
+ examples: JsonObject[];
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HasObjectExamples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasObjectExamples.js","sourceRoot":"","sources":["../../../src/types/openapi/HasObjectExamples.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { type SchemaObject } from 'openapi3-ts/oas31.js';
2
+ export interface HasResolvedProperties {
3
+ properties?: Record<string, SchemaObject>;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HasResolvedProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HasResolvedProperties.js","sourceRoot":"","sources":["../../../src/types/openapi/HasResolvedProperties.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@nldoc/openapi-test-set-generator",
3
+ "version": "1.2.18",
4
+ "description": "OpenApi test set generator",
5
+ "author": "NLdoc",
6
+ "license": "EUPL-1.2",
7
+ "type": "module",
8
+ "main": "dist/index.js",
9
+ "files": [
10
+ "bin",
11
+ "dist"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc --project tsconfig.dist.json",
18
+ "build:check": "tsc",
19
+ "test": "npm run test:watch run",
20
+ "test:watch": "vitest --coverage",
21
+ "commit": "cz",
22
+ "format": "prettier . --write",
23
+ "format:check": "prettier . --check",
24
+ "lint": "npx -y eslint .",
25
+ "fix": "npm run format && npm run lint -- --fix"
26
+ },
27
+ "dependencies": {
28
+ "@oclif/core": "^4.0.17",
29
+ "jsonpointer": "^5.0.1",
30
+ "openapi3-ts": "^4.3.3",
31
+ "yaml": "^2.5.0",
32
+ "zod": "^3.23.8"
33
+ },
34
+ "devDependencies": {
35
+ "@eslint/compat": "^1.1.1",
36
+ "@eslint/eslintrc": "^3.1.0",
37
+ "@eslint/js": "^9.7.0",
38
+ "@nldoc/configs": "^1.2.5",
39
+ "@tsconfig/node-lts": "^22.0.0",
40
+ "@types/eslint__js": "^9.0.0",
41
+ "@types/node": "^22.0.0",
42
+ "@vitest/coverage-v8": "^2.0.4",
43
+ "cz-conventional-changelog": "^3.3.0",
44
+ "eslint": "^9.8.0",
45
+ "eslint-config-prettier": "^10.0.0",
46
+ "eslint-plugin-prettier": "^5.2.1",
47
+ "eslint-plugin-promise": "^7.1.0",
48
+ "eslint-plugin-unused-imports": "^4.1.2",
49
+ "memfs": "^4.11.0",
50
+ "prettier": "^3.3.3",
51
+ "ts-node": "^10.9.2",
52
+ "typescript": "^5.5.4",
53
+ "typescript-eslint": "^8.0.1",
54
+ "unionfs": "^4.5.4",
55
+ "vitest": "^2.0.4"
56
+ },
57
+ "config": {
58
+ "commitizen": {
59
+ "path": "./node_modules/cz-conventional-changelog"
60
+ }
61
+ },
62
+ "bin": {
63
+ "openapi-test-set-generator": "./bin/run.js"
64
+ },
65
+ "oclif": {
66
+ "bin": "openapi-test-set-generator",
67
+ "commands": "./dist/commands",
68
+ "dirname": "openapi-test-set-generator",
69
+ "topicSeparator": " "
70
+ }
71
+ }