Skip to content

Commit

Permalink
Merge branch 'v5.1' of https://github.com/samchon/typia into v5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Sep 22, 2023
2 parents 2e3c796 + 64f5873 commit 4f575e4
Show file tree
Hide file tree
Showing 31 changed files with 437 additions and 432 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "5.0.5",
"version": "5.1.0-dev.20230923",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-json",
"version": "5.0.5",
"version": "5.1.0-dev.20230923",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"homepage": "https://typia.io",
"dependencies": {
"typia": "5.0.5"
"typia": "5.1.0-dev.20230923"
},
"peerDependencies": {
"typescript": ">= 4.8.0"
Expand Down
5 changes: 5 additions & 0 deletions src/factories/MetadataCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ export namespace MetadataCollection {
}

export const replace = (str: string): string => {
let replaced: string = str;
for (const [before] of REPLACERS)
replaced = replaced.split(before).join("");
if (replaced.length !== 0) return replaced;

for (const [before, after] of REPLACERS)
str = str.split(before).join(after);
return str;
Expand Down
18 changes: 9 additions & 9 deletions test/schemas/json/ajv/ArrayAtomicAlias.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@
"type": "array",
"items": [
{
"$ref": "#/components/schemas/ArrayAtomicAlias.Alias_lt_boolean_gt_"
"$ref": "#/components/schemas/ArrayAtomicAlias.Aliasboolean"
},
{
"$ref": "#/components/schemas/ArrayAtomicAlias.Alias_lt_number_gt_"
"$ref": "#/components/schemas/ArrayAtomicAlias.Aliasnumber"
},
{
"$ref": "#/components/schemas/ArrayAtomicAlias.Alias_lt_string_gt_"
"$ref": "#/components/schemas/ArrayAtomicAlias.Aliasstring"
}
],
"minItems": 3,
"maxItems": 3
},
"ArrayAtomicAlias.Alias_lt_boolean_gt_": {
"$id": "#/components/schemas/ArrayAtomicAlias.Alias_lt_boolean_gt_",
"ArrayAtomicAlias.Aliasboolean": {
"$id": "#/components/schemas/ArrayAtomicAlias.Aliasboolean",
"type": "array",
"items": {
"type": "boolean"
}
},
"ArrayAtomicAlias.Alias_lt_number_gt_": {
"$id": "#/components/schemas/ArrayAtomicAlias.Alias_lt_number_gt_",
"ArrayAtomicAlias.Aliasnumber": {
"$id": "#/components/schemas/ArrayAtomicAlias.Aliasnumber",
"type": "array",
"items": {
"type": "number"
}
},
"ArrayAtomicAlias.Alias_lt_string_gt_": {
"$id": "#/components/schemas/ArrayAtomicAlias.Alias_lt_string_gt_",
"ArrayAtomicAlias.Aliasstring": {
"$id": "#/components/schemas/ArrayAtomicAlias.Aliasstring",
"type": "array",
"items": {
"type": "string"
Expand Down
18 changes: 9 additions & 9 deletions test/schemas/json/ajv/AtomicIntersection.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
"type": "array",
"items": [
{
"$ref": "#/components/schemas/AtomicIntersection.Wrapper_lt_boolean_gt_"
"$ref": "#/components/schemas/AtomicIntersection.Wrapperboolean"
},
{
"$ref": "#/components/schemas/AtomicIntersection.Wrapper_lt_number_gt_"
"$ref": "#/components/schemas/AtomicIntersection.Wrappernumber"
},
{
"$ref": "#/components/schemas/AtomicIntersection.Wrapper_lt_string_gt_"
"$ref": "#/components/schemas/AtomicIntersection.Wrapperstring"
}
],
"minItems": 3,
"maxItems": 3
},
"AtomicIntersection.Wrapper_lt_boolean_gt_": {
"$id": "#/components/schemas/AtomicIntersection.Wrapper_lt_boolean_gt_",
"AtomicIntersection.Wrapperboolean": {
"$id": "#/components/schemas/AtomicIntersection.Wrapperboolean",
"type": "boolean"
},
"AtomicIntersection.Wrapper_lt_number_gt_": {
"$id": "#/components/schemas/AtomicIntersection.Wrapper_lt_number_gt_",
"AtomicIntersection.Wrappernumber": {
"$id": "#/components/schemas/AtomicIntersection.Wrappernumber",
"type": "number"
},
"AtomicIntersection.Wrapper_lt_string_gt_": {
"$id": "#/components/schemas/AtomicIntersection.Wrapper_lt_string_gt_",
"AtomicIntersection.Wrapperstring": {
"$id": "#/components/schemas/AtomicIntersection.Wrapperstring",
"type": "string"
}
}
Expand Down
18 changes: 9 additions & 9 deletions test/schemas/json/ajv/ConstantAtomicWrapper.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
"type": "array",
"items": [
{
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_boolean_gt_"
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointerboolean"
},
{
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_number_gt_"
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointernumber"
},
{
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_string_gt_"
"$ref": "#/components/schemas/ConstantAtomicWrapper.IPointerstring"
}
],
"minItems": 3,
"maxItems": 3
},
"ConstantAtomicWrapper.IPointer_lt_boolean_gt_": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_boolean_gt_",
"ConstantAtomicWrapper.IPointerboolean": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointerboolean",
"type": "object",
"properties": {
"value": {
Expand All @@ -38,8 +38,8 @@
],
"x-typia-jsDocTags": []
},
"ConstantAtomicWrapper.IPointer_lt_number_gt_": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_number_gt_",
"ConstantAtomicWrapper.IPointernumber": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointernumber",
"type": "object",
"properties": {
"value": {
Expand All @@ -53,8 +53,8 @@
],
"x-typia-jsDocTags": []
},
"ConstantAtomicWrapper.IPointer_lt_string_gt_": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointer_lt_string_gt_",
"ConstantAtomicWrapper.IPointerstring": {
"$id": "#/components/schemas/ConstantAtomicWrapper.IPointerstring",
"type": "object",
"properties": {
"value": {
Expand Down
18 changes: 9 additions & 9 deletions test/schemas/json/ajv/ConstantIntersection.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@
"type": "array",
"items": [
{
"$ref": "#/components/schemas/ConstantIntersection.Wrapper_lt_false_gt_"
"$ref": "#/components/schemas/ConstantIntersection.Wrapperfalse"
},
{
"$ref": "#/components/schemas/ConstantIntersection.Wrapper_lt_1_gt_"
"$ref": "#/components/schemas/ConstantIntersection.Wrapper1"
},
{
"$ref": "#/components/schemas/ConstantIntersection.Wrapper_lt__doublequote_two_doublequote__gt_"
"$ref": "#/components/schemas/ConstantIntersection.Wrappertwo"
}
],
"minItems": 3,
"maxItems": 3
},
"ConstantIntersection.Wrapper_lt_false_gt_": {
"$id": "#/components/schemas/ConstantIntersection.Wrapper_lt_false_gt_",
"ConstantIntersection.Wrapperfalse": {
"$id": "#/components/schemas/ConstantIntersection.Wrapperfalse",
"type": "boolean",
"enum": [
false
]
},
"ConstantIntersection.Wrapper_lt_1_gt_": {
"$id": "#/components/schemas/ConstantIntersection.Wrapper_lt_1_gt_",
"ConstantIntersection.Wrapper1": {
"$id": "#/components/schemas/ConstantIntersection.Wrapper1",
"type": "number",
"enum": [
1
]
},
"ConstantIntersection.Wrapper_lt__doublequote_two_doublequote__gt_": {
"$id": "#/components/schemas/ConstantIntersection.Wrapper_lt__doublequote_two_doublequote__gt_",
"ConstantIntersection.Wrappertwo": {
"$id": "#/components/schemas/ConstantIntersection.Wrappertwo",
"type": "string",
"enum": [
"two"
Expand Down
6 changes: 3 additions & 3 deletions test/schemas/json/ajv/DynamicTree.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "number"
},
"children": {
"$ref": "#/components/schemas/Record_lt_string_comma__space_DynamicTree_gt_"
"$ref": "#/components/schemas/RecordstringDynamicTree"
}
},
"required": [
Expand All @@ -31,8 +31,8 @@
],
"x-typia-jsDocTags": []
},
"Record_lt_string_comma__space_DynamicTree_gt_": {
"$id": "#/components/schemas/Record_lt_string_comma__space_DynamicTree_gt_",
"RecordstringDynamicTree": {
"$id": "#/components/schemas/RecordstringDynamicTree",
"type": "object",
"properties": {},
"x-typia-jsDocTags": [],
Expand Down
30 changes: 15 additions & 15 deletions test/schemas/json/ajv/MapAlias.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"type": "object",
"properties": {
"boolean": {
"$ref": "#/components/schemas/MapAlias.MAP_lt_boolean_comma__space_number_gt_"
"$ref": "#/components/schemas/MapAlias.MAPbooleannumber"
},
"number": {
"$ref": "#/components/schemas/MapAlias.MAP_lt_number_comma__space_number_gt_"
"$ref": "#/components/schemas/MapAlias.MAPnumbernumber"
},
"strings": {
"$ref": "#/components/schemas/MapAlias._Map_lt_string_comma__space_number_gt_"
"$ref": "#/components/schemas/MapAlias._Mapstringnumber"
},
"arrays": {
"$ref": "#/components/schemas/MapAlias._Map_lt_Array_lt_number_gt__comma__space_number_gt_"
"$ref": "#/components/schemas/MapAlias._MapArraynumbernumber"
},
"objects": {
"$ref": "#/components/schemas/MapAlias.MAP_lt_MapAlias.Person_comma__space_number_gt_"
"$ref": "#/components/schemas/MapAlias.MAPMapAlias.Personnumber"
}
},
"required": [
Expand All @@ -35,29 +35,29 @@
],
"x-typia-jsDocTags": []
},
"MapAlias.MAP_lt_boolean_comma__space_number_gt_": {
"$id": "#/components/schemas/MapAlias.MAP_lt_boolean_comma__space_number_gt_",
"MapAlias.MAPbooleannumber": {
"$id": "#/components/schemas/MapAlias.MAPbooleannumber",
"$ref": "#/components/objects/Map"
},
"Map": {
"type": "object",
"$id": "#/components/objects/Map",
"properties": {}
},
"MapAlias.MAP_lt_number_comma__space_number_gt_": {
"$id": "#/components/schemas/MapAlias.MAP_lt_number_comma__space_number_gt_",
"MapAlias.MAPnumbernumber": {
"$id": "#/components/schemas/MapAlias.MAPnumbernumber",
"$ref": "#/components/objects/Map"
},
"MapAlias._Map_lt_string_comma__space_number_gt_": {
"$id": "#/components/schemas/MapAlias._Map_lt_string_comma__space_number_gt_",
"MapAlias._Mapstringnumber": {
"$id": "#/components/schemas/MapAlias._Mapstringnumber",
"$ref": "#/components/objects/Map"
},
"MapAlias._Map_lt_Array_lt_number_gt__comma__space_number_gt_": {
"$id": "#/components/schemas/MapAlias._Map_lt_Array_lt_number_gt__comma__space_number_gt_",
"MapAlias._MapArraynumbernumber": {
"$id": "#/components/schemas/MapAlias._MapArraynumbernumber",
"$ref": "#/components/objects/Map"
},
"MapAlias.MAP_lt_MapAlias.Person_comma__space_number_gt_": {
"$id": "#/components/schemas/MapAlias.MAP_lt_MapAlias.Person_comma__space_number_gt_",
"MapAlias.MAPMapAlias.Personnumber": {
"$id": "#/components/schemas/MapAlias.MAPMapAlias.Personnumber",
"$ref": "#/components/objects/Map"
}
}
Expand Down
Loading

0 comments on commit 4f575e4

Please sign in to comment.