@tsed/schema 6.102.8-rc.1 → 6.102.8-rc.2

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 (70) hide show
  1. package/lib/cjs/decorators/common/description.js.map +1 -1
  2. package/lib/cjs/decorators/common/ignore.js.map +1 -1
  3. package/lib/cjs/decorators/common/jsonEntityFn.js.map +1 -1
  4. package/lib/cjs/decorators/operations/in.js +6 -4
  5. package/lib/cjs/decorators/operations/in.js.map +1 -1
  6. package/lib/cjs/domain/JsonMap.js.map +1 -1
  7. package/lib/cjs/domain/JsonOperation.js.map +1 -1
  8. package/lib/cjs/domain/JsonParameter.js.map +1 -1
  9. package/lib/cjs/domain/JsonResponse.js.map +1 -1
  10. package/lib/cjs/domain/JsonSchema.js.map +1 -1
  11. package/lib/cjs/index.js +135 -13
  12. package/lib/cjs/index.js.map +1 -1
  13. package/lib/cjs/utils/from.js +9 -8
  14. package/lib/cjs/utils/from.js.map +1 -1
  15. package/lib/cjs/utils/generics.js.map +1 -1
  16. package/lib/cjs/utils/getJsonSchema.js +1 -1
  17. package/lib/cjs/utils/getJsonSchema.js.map +1 -1
  18. package/lib/cjs/utils/getSpec.js.map +1 -1
  19. package/lib/esm/decorators/common/description.js.map +1 -1
  20. package/lib/esm/decorators/common/ignore.js.map +1 -1
  21. package/lib/esm/decorators/common/jsonEntityFn.js.map +1 -1
  22. package/lib/esm/decorators/operations/in.js +3 -1
  23. package/lib/esm/decorators/operations/in.js.map +1 -1
  24. package/lib/esm/domain/JsonMap.js.map +1 -1
  25. package/lib/esm/domain/JsonOperation.js.map +1 -1
  26. package/lib/esm/domain/JsonParameter.js.map +1 -1
  27. package/lib/esm/domain/JsonResponse.js.map +1 -1
  28. package/lib/esm/domain/JsonSchema.js.map +1 -1
  29. package/lib/esm/index.js +135 -13
  30. package/lib/esm/index.js.map +1 -1
  31. package/lib/esm/utils/from.js +2 -1
  32. package/lib/esm/utils/from.js.map +1 -1
  33. package/lib/esm/utils/generics.js.map +1 -1
  34. package/lib/esm/utils/getJsonSchema.js +1 -1
  35. package/lib/esm/utils/getJsonSchema.js.map +1 -1
  36. package/lib/esm/utils/getSpec.js.map +1 -1
  37. package/lib/types/decorators/common/ignore.d.ts +1 -1
  38. package/lib/types/decorators/common/jsonEntityFn.d.ts +1 -1
  39. package/lib/types/decorators/operations/in.d.ts +1 -1
  40. package/lib/types/domain/JsonMap.d.ts +1 -1
  41. package/lib/types/domain/JsonOperation.d.ts +2 -1
  42. package/lib/types/domain/JsonParameter.d.ts +1 -1
  43. package/lib/types/domain/JsonResponse.d.ts +2 -1
  44. package/lib/types/domain/JsonSchema.d.ts +1 -1
  45. package/lib/types/index.d.ts +135 -13
  46. package/lib/types/utils/generics.d.ts +1 -1
  47. package/lib/types/utils/getJsonSchema.d.ts +2 -2
  48. package/lib/types/utils/getSpec.d.ts +1 -1
  49. package/package.json +12 -7
  50. package/tsconfig.compile.esm.json +1 -0
  51. package/lib/cjs/components/index.js +0 -15
  52. package/lib/cjs/components/index.js.map +0 -1
  53. package/lib/cjs/decorators/index.js +0 -79
  54. package/lib/cjs/decorators/index.js.map +0 -1
  55. package/lib/cjs/domain/index.js +0 -20
  56. package/lib/cjs/domain/index.js.map +0 -1
  57. package/lib/cjs/interfaces/index.js +0 -8
  58. package/lib/cjs/interfaces/index.js.map +0 -1
  59. package/lib/esm/components/index.js +0 -12
  60. package/lib/esm/components/index.js.map +0 -1
  61. package/lib/esm/decorators/index.js +0 -76
  62. package/lib/esm/decorators/index.js.map +0 -1
  63. package/lib/esm/domain/index.js +0 -17
  64. package/lib/esm/domain/index.js.map +0 -1
  65. package/lib/esm/interfaces/index.js +0 -5
  66. package/lib/esm/interfaces/index.js.map +0 -1
  67. package/lib/types/components/index.d.ts +0 -11
  68. package/lib/types/decorators/index.d.ts +0 -70
  69. package/lib/types/domain/index.d.ts +0 -16
  70. package/lib/types/interfaces/index.d.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":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Q,GAAG,QAAQ,CAAC;wBACxC,IAAI;wBACJ,MAAM;wBACN,WAAW;wBACX,IAAI;wBACJ,QAAQ;wBACR,WAAW,EAAE,CAAC,IAAY,EAAE,EAAE,CAC5B,OAAO,CAAC,oBAAqB,CAC3B,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,UAAU,EAC5E,cAAc,CAAC,YAAY,EAC3B,IAAI,CACL;qBACJ,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAErC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;YAC/B,IAAI,QAAQ,KAAK,SAAS,CAAC,OAAO,EAAE;gBAClC,QAAQ,CAAC,UAAU,GAAG;oBACpB,OAAO;iBACR,CAAC;aACH;iBAAM;gBACL,QAAQ,CAAC,WAAW,GAAG,OAAO,CAAC;aAChC;SACF;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {cleanObject, Type, uniqBy} from \"@tsed/core\";\nimport {OpenSpec2, OpenSpec3} from \"@tsed/openspec\";\nimport {SpecTypes} from \"../domain/SpecTypes\";\nimport {JsonSchemaOptions} from \"../interfaces\";\nimport {buildPath} from \"./buildPath\";\nimport {getJsonEntityStore} from \"./getJsonEntityStore\";\nimport {getOperationsStores} from \"./getOperationsStores\";\nimport {mergeOperation} from \"./mergeOperation\";\nimport {operationIdFormatter} from \"./operationIdFormatter\";\n\nexport interface SpecSerializerOptions extends JsonSchemaOptions {\n specType?: SpecTypes.SWAGGER | SpecTypes.OPENAPI;\n /**\n * Paths\n */\n paths?: any;\n /**\n * Root path. This paths will be added to all generated paths Object.\n */\n rootPath?: string;\n /**\n * A function to generate the operationId.\n */\n operationIdFormatter?: (name: string, propertyKey: string, path: string) => string;\n /**\n * A pattern to generate the operationId.\n */\n operationIdPattern?: string;\n}\n\nexport interface OS3SpecSerializerOptions extends SpecSerializerOptions {\n /**\n * Define Spec types level\n */\n specType: SpecTypes.OPENAPI;\n}\n\nexport interface OS2SpecSerializerOptions extends SpecSerializerOptions {\n /**\n * Define Spec types level\n */\n specType: SpecTypes.SWAGGER;\n}\n\n/**\n * @ignore\n */\nconst caches: Map<Type<any>, Map<string, any>> = new Map();\n\n/**\n * @ignore\n */\nfunction get(model: Type<any>, options: any, cb: any) {\n if (!caches.has(model)) {\n caches.set(model, new Map());\n }\n\n const cache = caches.get(model)!;\n const key = JSON.stringify(options);\n\n if (!cache.has(key)) {\n cache.set(key, cb());\n }\n\n return cache.get(key);\n}\n\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: OS2SpecSerializerOptions): Partial<OpenSpec2>;\nexport function getSpec(model: Type<any>): Partial<OpenSpec2>;\nexport function getSpec(model: Type<any>, options: SpecSerializerOptions): Partial<OpenSpec2>;\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: OS3SpecSerializerOptions): Partial<OpenSpec3>;\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: SpecSerializerOptions = {}): Partial<OpenSpec2 | OpenSpec3> {\n if (!options.specType) {\n options.specType = SpecTypes.OPENAPI;\n }\n\n options = {\n ...options,\n operationIdFormatter: options.operationIdFormatter || operationIdFormatter(options.operationIdPattern),\n root: false,\n specType: options.specType\n };\n\n return get(model, options, () => {\n const store = getJsonEntityStore(model);\n const {specType = SpecTypes.OPENAPI, schemas = {}, paths = {}, rootPath = \"/\", tags = []} = options;\n const ctrlPath = store.path;\n const defaultTags = cleanObject({\n name: store.schema.getName(),\n description: store.schema.get(\"description\")\n });\n\n const specJson: any = {paths};\n\n getOperationsStores(model).forEach((operationStore) => {\n if (operationStore.store.get(\"hidden\")) {\n return;\n }\n\n const operation = operationStore.operation!.toJSON({...options, specType, schemas});\n\n operationStore.operation!.operationPaths.forEach(({path, method}: {path: string; method: string}) => {\n if (method) {\n mergeOperation(specJson, operation, {\n rootPath: buildPath(rootPath + ctrlPath),\n path,\n method,\n defaultTags,\n tags,\n specType,\n operationId: (path: string) =>\n options.operationIdFormatter!(\n operationStore.parent.schema.get(\"name\") || operationStore.parent.targetName,\n operationStore.propertyName,\n path\n )\n });\n }\n });\n });\n\n specJson.tags = uniqBy(tags, \"name\");\n\n if (Object.keys(schemas).length) {\n if (specType === SpecTypes.OPENAPI) {\n specJson.components = {\n schemas\n };\n } else {\n specJson.definitions = schemas;\n }\n }\n\n return specJson;\n });\n}\n"]}
1
+ {"version":3,"file":"getSpec.js","sourceRoot":"","sources":["../../../src/utils/getSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAQ,MAAM,EAAC,MAAM,YAAY,CAAC;AAErD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAoC5D;;GAEG;AACH,MAAM,MAAM,GAAqC,IAAI,GAAG,EAAE,CAAC;AAE3D;;GAEG;AACH,SAAS,GAAG,CAAC,KAAgB,EAAE,OAAY,EAAE,EAAO;IAClD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACtB,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;KAC9B;IAED,MAAM,KAAK,GAAG,MAA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AC,CAAC;AACL,CAAC","sourcesContent":["import {cleanObject, Type, uniqBy} from \"@tsed/core\";\nimport {OpenSpec2, OpenSpec3} from \"@tsed/openspec\";\nimport {SpecTypes} from \"../domain/SpecTypes\";\nimport {JsonSchemaOptions} from \"../interfaces/JsonSchemaOptions\";\nimport {buildPath} from \"./buildPath\";\nimport {getJsonEntityStore} from \"./getJsonEntityStore\";\nimport {getOperationsStores} from \"./getOperationsStores\";\nimport {mergeOperation} from \"./mergeOperation\";\nimport {operationIdFormatter} from \"./operationIdFormatter\";\n\nexport interface SpecSerializerOptions extends JsonSchemaOptions {\n specType?: SpecTypes.SWAGGER | SpecTypes.OPENAPI;\n /**\n * Paths\n */\n paths?: any;\n /**\n * Root path. This paths will be added to all generated paths Object.\n */\n rootPath?: string;\n /**\n * A function to generate the operationId.\n */\n operationIdFormatter?: (name: string, propertyKey: string, path: string) => string;\n /**\n * A pattern to generate the operationId.\n */\n operationIdPattern?: string;\n}\n\nexport interface OS3SpecSerializerOptions extends SpecSerializerOptions {\n /**\n * Define Spec types level\n */\n specType: SpecTypes.OPENAPI;\n}\n\nexport interface OS2SpecSerializerOptions extends SpecSerializerOptions {\n /**\n * Define Spec types level\n */\n specType: SpecTypes.SWAGGER;\n}\n\n/**\n * @ignore\n */\nconst caches: Map<Type<any>, Map<string, any>> = new Map();\n\n/**\n * @ignore\n */\nfunction get(model: Type<any>, options: any, cb: any) {\n if (!caches.has(model)) {\n caches.set(model, new Map());\n }\n\n const cache = caches.get(model)!;\n const key = JSON.stringify(options);\n\n if (!cache.has(key)) {\n cache.set(key, cb());\n }\n\n return cache.get(key);\n}\n\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: OS2SpecSerializerOptions): Partial<OpenSpec2>;\nexport function getSpec(model: Type<any>): Partial<OpenSpec2>;\nexport function getSpec(model: Type<any>, options: SpecSerializerOptions): Partial<OpenSpec2>;\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: OS3SpecSerializerOptions): Partial<OpenSpec3>;\n/**\n * Return the swagger or open spec for the given class.\n * @param model\n * @param options\n */\nexport function getSpec(model: Type<any>, options: SpecSerializerOptions = {}): Partial<OpenSpec2 | OpenSpec3> {\n if (!options.specType) {\n options.specType = SpecTypes.OPENAPI;\n }\n\n options = {\n ...options,\n operationIdFormatter: options.operationIdFormatter || operationIdFormatter(options.operationIdPattern),\n root: false,\n specType: options.specType\n };\n\n return get(model, options, () => {\n const store = getJsonEntityStore(model);\n const {specType = SpecTypes.OPENAPI, schemas = {}, paths = {}, rootPath = \"/\", tags = []} = options;\n const ctrlPath = store.path;\n const defaultTags = cleanObject({\n name: store.schema.getName(),\n description: store.schema.get(\"description\")\n });\n\n const specJson: any = {paths};\n\n getOperationsStores(model).forEach((operationStore) => {\n if (operationStore.store.get(\"hidden\")) {\n return;\n }\n\n const operation = operationStore.operation!.toJSON({...options, specType, schemas});\n\n operationStore.operation!.operationPaths.forEach(({path, method}: {path: string; method: string}) => {\n if (method) {\n mergeOperation(specJson, operation, {\n rootPath: buildPath(rootPath + ctrlPath),\n path,\n method,\n defaultTags,\n tags,\n specType,\n operationId: (path: string) =>\n options.operationIdFormatter!(\n operationStore.parent.schema.get(\"name\") || operationStore.parent.targetName,\n operationStore.propertyName,\n path\n )\n });\n }\n });\n });\n\n specJson.tags = uniqBy(tags, \"name\");\n\n if (Object.keys(schemas).length) {\n if (specType === SpecTypes.OPENAPI) {\n specJson.components = {\n schemas\n };\n } else {\n specJson.definitions = schemas;\n }\n }\n\n return specJson;\n });\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { IgnoreCallback } from "../../interfaces";
1
+ import { IgnoreCallback } from "../../interfaces/IgnoreCallback";
2
2
  /**
3
3
  * Ignore the property when JsonMapper serialize the class to a Plain Object JavaScript.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DecoratorParameters } from "@tsed/core";
2
- import type { JsonEntityStore } from "../../domain";
2
+ import type { JsonEntityStore } from "../../domain/JsonEntityStore";
3
3
  /**
4
4
  * Decorator util to compose another decorator. See @@Description@@ decorator implementation for more details.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import { Type } from "@tsed/core";
2
- import { JsonSchemaObject } from "../../domain";
3
2
  import { JsonParameterTypes } from "../../domain/JsonParameterTypes";
3
+ import { JsonSchemaObject } from "../../domain/JsonSchema";
4
4
  export interface InChainedDecorators {
5
5
  <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
6
6
  (target: Object, propertyKey: string | symbol, parameterIndex: number): void;
@@ -1,4 +1,4 @@
1
- import { JsonSchemaOptions } from "../interfaces";
1
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
2
2
  export declare class JsonMap<T> extends Map<string, any> {
3
3
  [key: string]: any;
4
4
  constructor(obj?: Partial<T>);
@@ -1,5 +1,6 @@
1
1
  import { OpenSpecSecurity, OpenSpecTag, OS3Operation } from "@tsed/openspec";
2
- import { JsonHeader, JsonSchemaOptions } from "../interfaces";
2
+ import { JsonHeader } from "../interfaces/JsonOpenSpec";
3
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
3
4
  import { JsonMap } from "./JsonMap";
4
5
  import { JsonParameter } from "./JsonParameter";
5
6
  import { JsonResponse } from "./JsonResponse";
@@ -1,6 +1,6 @@
1
1
  import { Type } from "@tsed/core";
2
2
  import { OpenSpecHash, OpenSpecRef, OS3Example, OS3Parameter } from "@tsed/openspec";
3
- import { JsonSchemaOptions } from "../interfaces";
3
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
4
4
  import { NestedGenerics } from "../utils/generics";
5
5
  import { JsonMap } from "./JsonMap";
6
6
  import { JsonSchema } from "./JsonSchema";
@@ -1,5 +1,6 @@
1
1
  import { OS3MediaType, OS3Response } from "@tsed/openspec";
2
- import { JsonHeader, JsonSchemaOptions } from "../interfaces";
2
+ import { JsonHeader } from "../interfaces/JsonOpenSpec";
3
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
3
4
  import { JsonMap } from "./JsonMap";
4
5
  import { JsonSchema } from "./JsonSchema";
5
6
  export declare type JsonResponseOptions = OS3Response<JsonSchema, string | JsonHeader>;
@@ -1,6 +1,6 @@
1
1
  import { Hooks, Type, ValueOf } from "@tsed/core";
2
2
  import type { JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version } from "json-schema";
3
- import { JsonSchemaOptions } from "../interfaces";
3
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
4
4
  import { IgnoreCallback } from "../interfaces/IgnoreCallback";
5
5
  import { NestedGenerics } from "../utils/generics";
6
6
  import { AliasMap, AliasType } from "./JsonAliasMap";
@@ -1,20 +1,142 @@
1
- export * from "./constants/httpStatusMessages";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./components/anyMapper";
5
+ export * from "./components/classMapper";
6
+ export * from "./components/genericsMapper";
7
+ export * from "./components/inheritedClassMapper";
8
+ export * from "./components/itemMapper";
9
+ export * from "./components/lazyRefMapper";
10
+ export * from "./components/mapMapper";
11
+ export * from "./components/objectMapper";
12
+ export * from "./components/ofMapper";
13
+ export * from "./components/propertiesMapper";
14
+ export * from "./components/schemaMapper";
2
15
  export * from "./constants/httpMethods";
16
+ export * from "./constants/httpStatusMessages";
17
+ export * from "./decorators/class/children";
18
+ export * from "./decorators/collections/collectionContains";
19
+ export * from "./decorators/collections/collectionOf";
20
+ export * from "./decorators/collections/maxItems";
21
+ export * from "./decorators/collections/maxProperties";
22
+ export * from "./decorators/collections/minItems";
23
+ export * from "./decorators/collections/minProperties";
24
+ export * from "./decorators/collections/uniqueItems";
25
+ export * from "./decorators/common/additionalProperties";
26
+ export * from "./decorators/common/allOf";
27
+ export * from "./decorators/common/allow";
28
+ export * from "./decorators/common/any";
29
+ export * from "./decorators/common/anyOf";
30
+ export * from "./decorators/common/const";
31
+ export * from "./decorators/common/customKey";
32
+ export * from "./decorators/common/default";
33
+ export * from "./decorators/common/description";
34
+ export * from "./decorators/common/enum";
35
+ export * from "./decorators/common/example";
36
+ export * from "./decorators/common/examples";
37
+ export * from "./decorators/common/exclusiveMaximum";
38
+ export * from "./decorators/common/exclusiveMinimum";
39
+ export * from "./decorators/common/format";
40
+ export * from "./decorators/common/forwardGroups";
41
+ export * from "./decorators/common/groups";
42
+ export * from "./decorators/common/hidden";
43
+ export * from "./decorators/common/ignore";
44
+ export * from "./decorators/common/integer";
45
+ export * from "./decorators/common/jsonEntityFn";
46
+ export * from "./decorators/common/maxLength";
47
+ export * from "./decorators/common/maximum";
48
+ export * from "./decorators/common/minLength";
49
+ export * from "./decorators/common/minimum";
50
+ export * from "./decorators/common/multipleOf";
51
+ export * from "./decorators/common/name";
52
+ export * from "./decorators/common/nullable";
53
+ export * from "./decorators/common/oneOf";
54
+ export * from "./decorators/common/optional";
55
+ export * from "./decorators/common/pattern";
56
+ export * from "./decorators/common/property";
57
+ export * from "./decorators/common/readOnly";
58
+ export * from "./decorators/common/required";
59
+ export * from "./decorators/common/requiredGroups";
60
+ export * from "./decorators/common/schema";
61
+ export * from "./decorators/common/title";
62
+ export * from "./decorators/common/writeOnly";
63
+ export * from "./decorators/config/jsonEntityComponent";
64
+ export * from "./decorators/generics/genericOf";
65
+ export * from "./decorators/generics/generics";
66
+ export * from "./decorators/operations/acceptMime";
67
+ export * from "./decorators/operations/consumes";
68
+ export * from "./decorators/operations/contentType";
69
+ export * from "./decorators/operations/deprecated";
70
+ export * from "./decorators/operations/header";
71
+ export * from "./decorators/operations/in";
72
+ export * from "./decorators/operations/inFile";
73
+ export * from "./decorators/operations/location";
74
+ export * from "./decorators/operations/operationId";
75
+ export * from "./decorators/operations/operationPath";
76
+ export * from "./decorators/operations/partial";
77
+ export * from "./decorators/operations/path";
78
+ export * from "./decorators/operations/produces";
79
+ export * from "./decorators/operations/redirect";
80
+ export * from "./decorators/operations/returns";
81
+ export * from "./decorators/operations/route";
82
+ export * from "./decorators/operations/security";
83
+ export * from "./decorators/operations/status";
84
+ export * from "./decorators/operations/summary";
85
+ export * from "./decorators/operations/tags";
86
+ export * from "./decorators/operations/view";
87
+ export * from "./domain/DecoratorContext";
88
+ export * from "./domain/JsonAliasMap";
89
+ export * from "./domain/JsonClassStore";
90
+ export * from "./domain/JsonEntityStore";
91
+ export * from "./domain/JsonFormatTypes";
92
+ export * from "./domain/JsonLazyRef";
93
+ export * from "./domain/JsonMap";
94
+ export * from "./domain/JsonMethodStore";
95
+ export * from "./domain/JsonOperation";
96
+ export * from "./domain/JsonOperationPathsMap";
97
+ export * from "./domain/JsonOperationRoute";
98
+ export * from "./domain/JsonParameter";
99
+ export * from "./domain/JsonParameterStore";
100
+ export * from "./domain/JsonParameterTypes";
101
+ export * from "./domain/JsonPropertyStore";
102
+ export * from "./domain/JsonRequestBody";
103
+ export * from "./domain/JsonResponse";
104
+ export * from "./domain/JsonSchema";
105
+ export * from "./domain/SpecTypes";
106
+ export * from "./hooks/alterIgnore";
107
+ export * from "./hooks/alterOneOf";
108
+ export * from "./hooks/alterRequiredGroups";
109
+ export * from "./interfaces/IgnoreCallback";
110
+ export * from "./interfaces/JsonHookContext";
111
+ export * from "./interfaces/JsonOpenSpec";
112
+ export * from "./interfaces/JsonSchemaOptions";
113
+ export * from "./registries/JsonSchemaMapperContainer";
114
+ export * from "./utils/buildPath";
115
+ export * from "./utils/concatParameters";
116
+ export * from "./utils/concatPath";
117
+ export * from "./utils/defineStatusModel";
118
+ export * from "./utils/from";
119
+ export * from "./utils/generics";
120
+ export * from "./utils/getComputedType";
121
+ export * from "./utils/getInheritedStores";
122
+ export * from "./utils/getJsonEntityStore";
123
+ export * from "./utils/getJsonPathParameters";
3
124
  export * from "./utils/getJsonSchema";
4
125
  export * from "./utils/getJsonType";
5
- export * from "./utils/getPropertiesStores";
6
- export * from "./utils/getOperationsStores";
7
126
  export * from "./utils/getOperationsRoutes";
127
+ export * from "./utils/getOperationsStores";
128
+ export * from "./utils/getPropertiesStores";
129
+ export * from "./utils/getRequiredProperties";
8
130
  export * from "./utils/getSpec";
9
- export * from "./utils/mergeSpec";
10
- export * from "./utils/generics";
131
+ export * from "./utils/isSuccessStatus";
11
132
  export * from "./utils/mapHeaders";
133
+ export * from "./utils/mapNullableType";
134
+ export * from "./utils/mapRouteOptions";
12
135
  export * from "./utils/matchGroups";
13
- export * from "./utils/isSuccessStatus";
14
- export * from "./utils/from";
15
- export * from "./utils/concatPath";
16
- export * from "./utils/defineStatusModel";
17
- export * from "./domain";
18
- export * from "./hooks/alterIgnore";
19
- export * from "./interfaces";
20
- export * from "./decorators";
136
+ export * from "./utils/mergeOperation";
137
+ export * from "./utils/mergeSpec";
138
+ export * from "./utils/operationIdFormatter";
139
+ export * from "./utils/ref";
140
+ export * from "./utils/serializeEnumValues";
141
+ export * from "./utils/toJsonMapCollection";
142
+ export * from "./utils/toJsonRegex";
@@ -1,5 +1,5 @@
1
1
  import { Type } from "@tsed/core";
2
- import { JsonSchema } from "../domain";
2
+ import { JsonSchema } from "../domain/JsonSchema";
3
3
  export declare type GenericValue = Type<any> | JsonSchema | any;
4
4
  /**
5
5
  * @ignore
@@ -1,4 +1,4 @@
1
1
  import { Type } from "@tsed/core";
2
- import "../components";
3
- import { JsonSchemaOptions } from "../interfaces";
2
+ import "@tsed/schema";
3
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
4
4
  export declare function getJsonSchema(model: Type<any> | any, options?: JsonSchemaOptions): any;
@@ -1,7 +1,7 @@
1
1
  import { Type } from "@tsed/core";
2
2
  import { OpenSpec2, OpenSpec3 } from "@tsed/openspec";
3
3
  import { SpecTypes } from "../domain/SpecTypes";
4
- import { JsonSchemaOptions } from "../interfaces";
4
+ import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions";
5
5
  export interface SpecSerializerOptions extends JsonSchemaOptions {
6
6
  specType?: SpecTypes.SWAGGER | SpecTypes.OPENAPI;
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/schema",
3
- "version": "6.102.8-rc.1",
3
+ "version": "6.102.8-rc.2",
4
4
  "description": "JsonSchema module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -14,9 +14,11 @@
14
14
  "default": "./lib/esm/index.js"
15
15
  },
16
16
  "scripts": {
17
- "build": "yarn run build:esm && yarn run build:cjs",
17
+ "clean": "rm -rf lib",
18
+ "build": "yarn clean && yarn barrels && yarn run build:esm && yarn run build:cjs",
18
19
  "build:cjs": "tsc --build tsconfig.compile.json",
19
20
  "build:esm": "tsc --build tsconfig.compile.esm.json",
21
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
20
22
  "test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
21
23
  },
22
24
  "keywords": [
@@ -30,7 +32,7 @@
30
32
  "tsed"
31
33
  ],
32
34
  "dependencies": {
33
- "@tsed/openspec": "6.102.8-rc.1",
35
+ "@tsed/openspec": "6.102.8-rc.2",
34
36
  "camel-case": "4.1.2",
35
37
  "json-schema": "0.4.0",
36
38
  "micromatch": "4.0.4",
@@ -40,8 +42,8 @@
40
42
  },
41
43
  "devDependencies": {
42
44
  "@apidevtools/swagger-parser": "10.0.2",
43
- "@tsed/core": "6.102.8-rc.1",
44
- "@tsed/openspec": "6.102.8-rc.1",
45
+ "@tsed/core": "6.102.8-rc.2",
46
+ "@tsed/openspec": "6.102.8-rc.2",
45
47
  "@types/fs-extra": "9.0.6",
46
48
  "@types/json-schema": "7.0.7",
47
49
  "@types/micromatch": "4.0.1",
@@ -49,7 +51,7 @@
49
51
  "fs-extra": "9.0.1"
50
52
  },
51
53
  "peerDependencies": {
52
- "@tsed/core": "^6.102.8-rc.1"
54
+ "@tsed/core": "^6.102.8-rc.2"
53
55
  },
54
56
  "peerDependenciesMeta": {
55
57
  "@tsed/code": {
@@ -62,5 +64,8 @@
62
64
  },
63
65
  "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/specs/schema",
64
66
  "author": "Romain Lenzotti",
65
- "license": "MIT"
67
+ "license": "MIT",
68
+ "publishConfig": {
69
+ "tag": "rc"
70
+ }
66
71
  }
@@ -8,5 +8,6 @@
8
8
  "declaration": true,
9
9
  "declarationDir": "./lib/types"
10
10
  },
11
+ "include": ["src"],
11
12
  "exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
12
13
  }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./anyMapper"), exports);
5
- (0, tslib_1.__exportStar)(require("./classMapper"), exports);
6
- (0, tslib_1.__exportStar)(require("./genericsMapper"), exports);
7
- (0, tslib_1.__exportStar)(require("./inheritedClassMapper"), exports);
8
- (0, tslib_1.__exportStar)(require("./itemMapper"), exports);
9
- (0, tslib_1.__exportStar)(require("./lazyRefMapper"), exports);
10
- (0, tslib_1.__exportStar)(require("./mapMapper"), exports);
11
- (0, tslib_1.__exportStar)(require("./objectMapper"), exports);
12
- (0, tslib_1.__exportStar)(require("./schemaMapper"), exports);
13
- (0, tslib_1.__exportStar)(require("./ofMapper"), exports);
14
- (0, tslib_1.__exportStar)(require("./propertiesMapper"), exports);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,2DAA4B;AAC5B,6DAA8B;AAC9B,gEAAiC;AACjC,sEAAuC;AACvC,4DAA6B;AAC7B,+DAAgC;AAChC,2DAA4B;AAC5B,8DAA+B;AAC/B,8DAA+B;AAC/B,0DAA2B;AAC3B,kEAAmC","sourcesContent":["export * from \"./anyMapper\";\nexport * from \"./classMapper\";\nexport * from \"./genericsMapper\";\nexport * from \"./inheritedClassMapper\";\nexport * from \"./itemMapper\";\nexport * from \"./lazyRefMapper\";\nexport * from \"./mapMapper\";\nexport * from \"./objectMapper\";\nexport * from \"./schemaMapper\";\nexport * from \"./ofMapper\";\nexport * from \"./propertiesMapper\";\n"]}
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- // class
5
- (0, tslib_1.__exportStar)(require("./class/children"), exports);
6
- // collections
7
- (0, tslib_1.__exportStar)(require("./collections/collectionContains"), exports);
8
- (0, tslib_1.__exportStar)(require("./collections/collectionOf"), exports);
9
- (0, tslib_1.__exportStar)(require("./collections/maxItems"), exports);
10
- (0, tslib_1.__exportStar)(require("./collections/minItems"), exports);
11
- (0, tslib_1.__exportStar)(require("./collections/uniqueItems"), exports);
12
- (0, tslib_1.__exportStar)(require("./collections/maxProperties"), exports);
13
- (0, tslib_1.__exportStar)(require("./collections/minProperties"), exports);
14
- // generics
15
- (0, tslib_1.__exportStar)(require("./generics/generics"), exports);
16
- (0, tslib_1.__exportStar)(require("./generics/genericOf"), exports);
17
- // operations
18
- (0, tslib_1.__exportStar)(require("./operations/deprecated"), exports);
19
- (0, tslib_1.__exportStar)(require("./operations/consumes"), exports);
20
- (0, tslib_1.__exportStar)(require("./operations/view"), exports);
21
- (0, tslib_1.__exportStar)(require("./operations/contentType"), exports);
22
- (0, tslib_1.__exportStar)(require("./operations/in"), exports);
23
- (0, tslib_1.__exportStar)(require("./operations/inFile"), exports);
24
- (0, tslib_1.__exportStar)(require("./operations/operationId"), exports);
25
- (0, tslib_1.__exportStar)(require("./operations/operationPath"), exports);
26
- (0, tslib_1.__exportStar)(require("./operations/path"), exports);
27
- (0, tslib_1.__exportStar)(require("./operations/produces"), exports);
28
- (0, tslib_1.__exportStar)(require("./operations/returns"), exports);
29
- (0, tslib_1.__exportStar)(require("./operations/status"), exports);
30
- (0, tslib_1.__exportStar)(require("./operations/header"), exports);
31
- (0, tslib_1.__exportStar)(require("./operations/security"), exports);
32
- (0, tslib_1.__exportStar)(require("./operations/tags"), exports);
33
- (0, tslib_1.__exportStar)(require("./operations/summary"), exports);
34
- (0, tslib_1.__exportStar)(require("./operations/partial"), exports);
35
- (0, tslib_1.__exportStar)(require("./operations/redirect"), exports);
36
- (0, tslib_1.__exportStar)(require("./operations/location"), exports);
37
- (0, tslib_1.__exportStar)(require("./operations/route"), exports);
38
- (0, tslib_1.__exportStar)(require("./operations/acceptMime"), exports);
39
- // common
40
- (0, tslib_1.__exportStar)(require("./common/additionalProperties"), exports);
41
- (0, tslib_1.__exportStar)(require("./common/allow"), exports);
42
- (0, tslib_1.__exportStar)(require("./common/any"), exports);
43
- (0, tslib_1.__exportStar)(require("./common/integer"), exports);
44
- (0, tslib_1.__exportStar)(require("./common/const"), exports);
45
- (0, tslib_1.__exportStar)(require("./common/default"), exports);
46
- (0, tslib_1.__exportStar)(require("./common/description"), exports);
47
- (0, tslib_1.__exportStar)(require("./common/example"), exports);
48
- (0, tslib_1.__exportStar)(require("./common/examples"), exports);
49
- (0, tslib_1.__exportStar)(require("./common/enum"), exports);
50
- (0, tslib_1.__exportStar)(require("./common/exclusiveMaximum"), exports);
51
- (0, tslib_1.__exportStar)(require("./common/exclusiveMinimum"), exports);
52
- (0, tslib_1.__exportStar)(require("./common/format"), exports);
53
- (0, tslib_1.__exportStar)(require("./common/forwardGroups"), exports);
54
- (0, tslib_1.__exportStar)(require("./common/groups"), exports);
55
- (0, tslib_1.__exportStar)(require("./common/pattern"), exports);
56
- (0, tslib_1.__exportStar)(require("./common/ignore"), exports);
57
- (0, tslib_1.__exportStar)(require("./common/maximum"), exports);
58
- (0, tslib_1.__exportStar)(require("./common/maxLength"), exports);
59
- (0, tslib_1.__exportStar)(require("./common/minimum"), exports);
60
- (0, tslib_1.__exportStar)(require("./common/minLength"), exports);
61
- (0, tslib_1.__exportStar)(require("./common/multipleOf"), exports);
62
- (0, tslib_1.__exportStar)(require("./common/name"), exports);
63
- (0, tslib_1.__exportStar)(require("./common/required"), exports);
64
- (0, tslib_1.__exportStar)(require("./common/requiredGroups"), exports);
65
- (0, tslib_1.__exportStar)(require("./common/property"), exports);
66
- (0, tslib_1.__exportStar)(require("./common/hidden"), exports);
67
- (0, tslib_1.__exportStar)(require("./common/title"), exports);
68
- (0, tslib_1.__exportStar)(require("./common/schema"), exports);
69
- (0, tslib_1.__exportStar)(require("./common/oneOf"), exports);
70
- (0, tslib_1.__exportStar)(require("./common/allOf"), exports);
71
- (0, tslib_1.__exportStar)(require("./common/anyOf"), exports);
72
- (0, tslib_1.__exportStar)(require("./common/jsonEntityFn"), exports);
73
- (0, tslib_1.__exportStar)(require("./common/optional"), exports);
74
- (0, tslib_1.__exportStar)(require("./common/writeOnly"), exports);
75
- (0, tslib_1.__exportStar)(require("./common/readOnly"), exports);
76
- (0, tslib_1.__exportStar)(require("./common/customKey"), exports);
77
- (0, tslib_1.__exportStar)(require("./common/nullable"), exports);
78
- (0, tslib_1.__exportStar)(require("./config/jsonEntityComponent"), exports);
79
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;AAAA,QAAQ;AACR,gEAAiC;AAEjC,cAAc;AACd,gFAAiD;AACjD,0EAA2C;AAC3C,sEAAuC;AACvC,sEAAuC;AACvC,yEAA0C;AAC1C,2EAA4C;AAC5C,2EAA4C;AAE5C,WAAW;AACX,mEAAoC;AACpC,oEAAqC;AAErC,aAAa;AACb,uEAAwC;AACxC,qEAAsC;AACtC,iEAAkC;AAClC,wEAAyC;AACzC,+DAAgC;AAChC,mEAAoC;AACpC,wEAAyC;AACzC,0EAA2C;AAC3C,iEAAkC;AAClC,qEAAsC;AACtC,oEAAqC;AACrC,mEAAoC;AACpC,mEAAoC;AACpC,qEAAsC;AACtC,iEAAkC;AAClC,oEAAqC;AACrC,oEAAqC;AACrC,qEAAsC;AACtC,qEAAsC;AACtC,kEAAmC;AACnC,uEAAwC;AAExC,SAAS;AACT,6EAA8C;AAC9C,8DAA+B;AAC/B,4DAA6B;AAC7B,gEAAiC;AACjC,8DAA+B;AAC/B,gEAAiC;AACjC,oEAAqC;AACrC,gEAAiC;AACjC,iEAAkC;AAClC,6DAA8B;AAC9B,yEAA0C;AAC1C,yEAA0C;AAC1C,+DAAgC;AAChC,sEAAuC;AACvC,+DAAgC;AAChC,gEAAiC;AACjC,+DAAgC;AAChC,gEAAiC;AACjC,kEAAmC;AACnC,gEAAiC;AACjC,kEAAmC;AACnC,mEAAoC;AACpC,6DAA8B;AAC9B,iEAAkC;AAClC,uEAAwC;AACxC,iEAAkC;AAClC,+DAAgC;AAChC,8DAA+B;AAC/B,+DAAgC;AAChC,8DAA+B;AAC/B,8DAA+B;AAC/B,8DAA+B;AAC/B,qEAAsC;AACtC,iEAAkC;AAClC,kEAAmC;AACnC,iEAAkC;AAClC,kEAAmC;AACnC,iEAAkC;AAClC,4EAA6C","sourcesContent":["// class\nexport * from \"./class/children\";\n\n// collections\nexport * from \"./collections/collectionContains\";\nexport * from \"./collections/collectionOf\";\nexport * from \"./collections/maxItems\";\nexport * from \"./collections/minItems\";\nexport * from \"./collections/uniqueItems\";\nexport * from \"./collections/maxProperties\";\nexport * from \"./collections/minProperties\";\n\n// generics\nexport * from \"./generics/generics\";\nexport * from \"./generics/genericOf\";\n\n// operations\nexport * from \"./operations/deprecated\";\nexport * from \"./operations/consumes\";\nexport * from \"./operations/view\";\nexport * from \"./operations/contentType\";\nexport * from \"./operations/in\";\nexport * from \"./operations/inFile\";\nexport * from \"./operations/operationId\";\nexport * from \"./operations/operationPath\";\nexport * from \"./operations/path\";\nexport * from \"./operations/produces\";\nexport * from \"./operations/returns\";\nexport * from \"./operations/status\";\nexport * from \"./operations/header\";\nexport * from \"./operations/security\";\nexport * from \"./operations/tags\";\nexport * from \"./operations/summary\";\nexport * from \"./operations/partial\";\nexport * from \"./operations/redirect\";\nexport * from \"./operations/location\";\nexport * from \"./operations/route\";\nexport * from \"./operations/acceptMime\";\n\n// common\nexport * from \"./common/additionalProperties\";\nexport * from \"./common/allow\";\nexport * from \"./common/any\";\nexport * from \"./common/integer\";\nexport * from \"./common/const\";\nexport * from \"./common/default\";\nexport * from \"./common/description\";\nexport * from \"./common/example\";\nexport * from \"./common/examples\";\nexport * from \"./common/enum\";\nexport * from \"./common/exclusiveMaximum\";\nexport * from \"./common/exclusiveMinimum\";\nexport * from \"./common/format\";\nexport * from \"./common/forwardGroups\";\nexport * from \"./common/groups\";\nexport * from \"./common/pattern\";\nexport * from \"./common/ignore\";\nexport * from \"./common/maximum\";\nexport * from \"./common/maxLength\";\nexport * from \"./common/minimum\";\nexport * from \"./common/minLength\";\nexport * from \"./common/multipleOf\";\nexport * from \"./common/name\";\nexport * from \"./common/required\";\nexport * from \"./common/requiredGroups\";\nexport * from \"./common/property\";\nexport * from \"./common/hidden\";\nexport * from \"./common/title\";\nexport * from \"./common/schema\";\nexport * from \"./common/oneOf\";\nexport * from \"./common/allOf\";\nexport * from \"./common/anyOf\";\nexport * from \"./common/jsonEntityFn\";\nexport * from \"./common/optional\";\nexport * from \"./common/writeOnly\";\nexport * from \"./common/readOnly\";\nexport * from \"./common/customKey\";\nexport * from \"./common/nullable\";\nexport * from \"./config/jsonEntityComponent\";\n"]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./JsonMap"), exports);
5
- (0, tslib_1.__exportStar)(require("./JsonOperation"), exports);
6
- (0, tslib_1.__exportStar)(require("./JsonParameter"), exports);
7
- (0, tslib_1.__exportStar)(require("./JsonRequestBody"), exports);
8
- (0, tslib_1.__exportStar)(require("./JsonResponse"), exports);
9
- (0, tslib_1.__exportStar)(require("./JsonSchema"), exports);
10
- (0, tslib_1.__exportStar)(require("./JsonFormatTypes"), exports);
11
- (0, tslib_1.__exportStar)(require("./SpecTypes"), exports);
12
- (0, tslib_1.__exportStar)(require("./JsonEntityStore"), exports);
13
- (0, tslib_1.__exportStar)(require("./JsonClassStore"), exports);
14
- (0, tslib_1.__exportStar)(require("./JsonMethodStore"), exports);
15
- (0, tslib_1.__exportStar)(require("./JsonParameterStore"), exports);
16
- (0, tslib_1.__exportStar)(require("./JsonPropertyStore"), exports);
17
- (0, tslib_1.__exportStar)(require("./JsonOperationRoute"), exports);
18
- (0, tslib_1.__exportStar)(require("./JsonParameterTypes"), exports);
19
- (0, tslib_1.__exportStar)(require("./JsonLazyRef"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0B;AAC1B,+DAAgC;AAChC,+DAAgC;AAChC,iEAAkC;AAClC,8DAA+B;AAC/B,4DAA6B;AAC7B,iEAAkC;AAClC,2DAA4B;AAC5B,iEAAkC;AAClC,gEAAiC;AACjC,iEAAkC;AAClC,oEAAqC;AACrC,mEAAoC;AACpC,oEAAqC;AACrC,oEAAqC;AACrC,6DAA8B","sourcesContent":["export * from \"./JsonMap\";\nexport * from \"./JsonOperation\";\nexport * from \"./JsonParameter\";\nexport * from \"./JsonRequestBody\";\nexport * from \"./JsonResponse\";\nexport * from \"./JsonSchema\";\nexport * from \"./JsonFormatTypes\";\nexport * from \"./SpecTypes\";\nexport * from \"./JsonEntityStore\";\nexport * from \"./JsonClassStore\";\nexport * from \"./JsonMethodStore\";\nexport * from \"./JsonParameterStore\";\nexport * from \"./JsonPropertyStore\";\nexport * from \"./JsonOperationRoute\";\nexport * from \"./JsonParameterTypes\";\nexport * from \"./JsonLazyRef\";\n"]}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./JsonSchemaOptions"), exports);
5
- (0, tslib_1.__exportStar)(require("./JsonOpenSpec"), exports);
6
- (0, tslib_1.__exportStar)(require("./IgnoreCallback"), exports);
7
- (0, tslib_1.__exportStar)(require("./JsonHookContext"), exports);
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,mEAAoC;AACpC,8DAA+B;AAC/B,gEAAiC;AACjC,iEAAkC","sourcesContent":["export * from \"./JsonSchemaOptions\";\nexport * from \"./JsonOpenSpec\";\nexport * from \"./IgnoreCallback\";\nexport * from \"./JsonHookContext\";\n"]}
@@ -1,12 +0,0 @@
1
- export * from "./anyMapper.js";
2
- export * from "./classMapper.js";
3
- export * from "./genericsMapper.js";
4
- export * from "./inheritedClassMapper.js";
5
- export * from "./itemMapper.js";
6
- export * from "./lazyRefMapper.js";
7
- export * from "./mapMapper.js";
8
- export * from "./objectMapper.js";
9
- export * from "./schemaMapper.js";
10
- export * from "./ofMapper.js";
11
- export * from "./propertiesMapper.js";
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC","sourcesContent":["export * from \"./anyMapper\";\nexport * from \"./classMapper\";\nexport * from \"./genericsMapper\";\nexport * from \"./inheritedClassMapper\";\nexport * from \"./itemMapper\";\nexport * from \"./lazyRefMapper\";\nexport * from \"./mapMapper\";\nexport * from \"./objectMapper\";\nexport * from \"./schemaMapper\";\nexport * from \"./ofMapper\";\nexport * from \"./propertiesMapper\";\n"]}
@@ -1,76 +0,0 @@
1
- // class
2
- export * from "./class/children.js";
3
- // collections
4
- export * from "./collections/collectionContains.js";
5
- export * from "./collections/collectionOf.js";
6
- export * from "./collections/maxItems.js";
7
- export * from "./collections/minItems.js";
8
- export * from "./collections/uniqueItems.js";
9
- export * from "./collections/maxProperties.js";
10
- export * from "./collections/minProperties.js";
11
- // generics
12
- export * from "./generics/generics.js";
13
- export * from "./generics/genericOf.js";
14
- // operations
15
- export * from "./operations/deprecated.js";
16
- export * from "./operations/consumes.js";
17
- export * from "./operations/view.js";
18
- export * from "./operations/contentType.js";
19
- export * from "./operations/in.js";
20
- export * from "./operations/inFile.js";
21
- export * from "./operations/operationId.js";
22
- export * from "./operations/operationPath.js";
23
- export * from "./operations/path.js";
24
- export * from "./operations/produces.js";
25
- export * from "./operations/returns.js";
26
- export * from "./operations/status.js";
27
- export * from "./operations/header.js";
28
- export * from "./operations/security.js";
29
- export * from "./operations/tags.js";
30
- export * from "./operations/summary.js";
31
- export * from "./operations/partial.js";
32
- export * from "./operations/redirect.js";
33
- export * from "./operations/location.js";
34
- export * from "./operations/route.js";
35
- export * from "./operations/acceptMime.js";
36
- // common
37
- export * from "./common/additionalProperties.js";
38
- export * from "./common/allow.js";
39
- export * from "./common/any.js";
40
- export * from "./common/integer.js";
41
- export * from "./common/const.js";
42
- export * from "./common/default.js";
43
- export * from "./common/description.js";
44
- export * from "./common/example.js";
45
- export * from "./common/examples.js";
46
- export * from "./common/enum.js";
47
- export * from "./common/exclusiveMaximum.js";
48
- export * from "./common/exclusiveMinimum.js";
49
- export * from "./common/format.js";
50
- export * from "./common/forwardGroups.js";
51
- export * from "./common/groups.js";
52
- export * from "./common/pattern.js";
53
- export * from "./common/ignore.js";
54
- export * from "./common/maximum.js";
55
- export * from "./common/maxLength.js";
56
- export * from "./common/minimum.js";
57
- export * from "./common/minLength.js";
58
- export * from "./common/multipleOf.js";
59
- export * from "./common/name.js";
60
- export * from "./common/required.js";
61
- export * from "./common/requiredGroups.js";
62
- export * from "./common/property.js";
63
- export * from "./common/hidden.js";
64
- export * from "./common/title.js";
65
- export * from "./common/schema.js";
66
- export * from "./common/oneOf.js";
67
- export * from "./common/allOf.js";
68
- export * from "./common/anyOf.js";
69
- export * from "./common/jsonEntityFn.js";
70
- export * from "./common/optional.js";
71
- export * from "./common/writeOnly.js";
72
- export * from "./common/readOnly.js";
73
- export * from "./common/customKey.js";
74
- export * from "./common/nullable.js";
75
- export * from "./config/jsonEntityComponent.js";
76
- //# sourceMappingURL=index.js.map