ts-openapi-codegen 2.0.0-beta.9 → 2.1.0-beta.1
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.
- package/README.md +177 -18
- package/README.rus.md +177 -21
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +365 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +142 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +137 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts +17 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/analyzeDiff.js +105 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +17 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.js +54 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ciSummary.js +20 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts +54 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/diffEngine.js +209 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +33 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreRules.js +93 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts +10 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.js +84 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/logLegacyReport.js +29 -0
- package/dist/cli/analyzeDiff/miracles.d.ts +89 -0
- package/dist/cli/analyzeDiff/miracles.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/miracles.js +325 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts +5 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/pluginPaths.js +13 -0
- package/dist/cli/analyzeDiff/report.d.ts +3 -0
- package/dist/cli/analyzeDiff/report.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/report.js +7 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts +6 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.js +16 -0
- package/dist/cli/analyzeDiff/specParser.d.ts +22 -0
- package/dist/cli/analyzeDiff/specParser.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/specParser.js +80 -0
- package/dist/cli/analyzeDiff/types.d.ts +61 -0
- package/dist/cli/analyzeDiff/types.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/types.js +2 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.js +21 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +13 -8
- package/dist/cli/checkAndUpdateConfig/constants.d.ts +0 -9
- package/dist/cli/checkAndUpdateConfig/constants.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/constants.js +1 -10
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +11 -7
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.js +3 -2
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.js +2 -2
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts +2 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts.map +1 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +152 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +6 -2
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +70 -22
- package/dist/cli/index.js +62 -5
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +19 -6
- package/dist/cli/initOpenApiConfig/initConfig.d.ts +1 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initConfig.js +47 -24
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +8 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +40 -8
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +60 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.js +2 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.js +2 -1
- package/dist/cli/interactive/confirmDialog.d.ts.map +1 -1
- package/dist/cli/interactive/confirmDialog.js +3 -2
- package/dist/cli/interactive/constants.d.ts +2 -2
- package/dist/cli/interactive/constants.js +8 -8
- package/dist/cli/interactive/selectDialog.d.ts.map +1 -1
- package/dist/cli/interactive/selectDialog.js +11 -6
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +151 -39
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
- package/dist/cli/schemas/analyzeDiff.d.ts +14 -0
- package/dist/cli/schemas/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeDiff.js +28 -0
- package/dist/cli/schemas/generate.d.ts +9 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +9 -0
- package/dist/cli/schemas/index.d.ts +3 -1
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +2 -0
- package/dist/common/Consts.d.ts +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +19 -2
- package/dist/common/Logger.d.ts +20 -1
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +70 -9
- package/dist/common/LoggerMessages.d.ts +136 -33
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +119 -45
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +20 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +4 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +77 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +41 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +79 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +19 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +326 -28
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +15 -17
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +52 -4
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +48 -7
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +6 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +6 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +40 -1
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +20 -3
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +19 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +4 -0
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +68 -23
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +10 -0
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +34 -15
- package/dist/common/__tests__/Logger.test.d.ts +2 -0
- package/dist/common/__tests__/Logger.test.d.ts.map +1 -0
- package/dist/common/__tests__/Logger.test.js +100 -0
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +67 -169
- package/dist/common/utils/__tests__/eslintFix.test.d.ts +2 -0
- package/dist/common/utils/__tests__/eslintFix.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/eslintFix.test.js +134 -0
- package/dist/common/utils/__tests__/format.test.d.ts +2 -0
- package/dist/common/utils/__tests__/format.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/format.test.js +90 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +54 -14
- package/dist/common/utils/eslintFix.d.ts +7 -0
- package/dist/common/utils/eslintFix.d.ts.map +1 -0
- package/dist/common/utils/eslintFix.js +78 -0
- package/dist/common/utils/format.d.ts +1 -1
- package/dist/common/utils/format.d.ts.map +1 -1
- package/dist/common/utils/format.js +39 -15
- package/dist/common/utils/jsonPath.d.ts +5 -0
- package/dist/common/utils/jsonPath.d.ts.map +1 -0
- package/dist/common/utils/jsonPath.js +27 -0
- package/dist/common/utils/normalizeObject.d.ts +2 -0
- package/dist/common/utils/normalizeObject.d.ts.map +1 -0
- package/dist/common/utils/normalizeObject.js +63 -0
- package/dist/core/Context.d.ts +8 -1
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +23 -4
- package/dist/core/OpenApiClient.d.ts +2 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +127 -6
- package/dist/core/WriteClient.d.ts +12 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +83 -8
- package/dist/core/__tests__/WriteClient.test.js +6 -1
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModel.js +6 -1
- package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperation.js +2 -0
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getType.js +2 -1
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.js +65 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v3/parser/getContent.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getContent.js +21 -11
- package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModel.js +6 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperation.js +2 -0
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +2 -1
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts +2 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.js +100 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts +2 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.js +71 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts +42 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -0
- package/dist/core/governance/evaluateGovernanceRules.js +134 -0
- package/dist/core/governance/governanceConfigSchema.d.ts +4 -0
- package/dist/core/governance/governanceConfigSchema.d.ts.map +1 -0
- package/dist/core/governance/governanceConfigSchema.js +39 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts +7 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -0
- package/dist/core/governance/loadGovernanceConfig.js +60 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -2
- package/dist/core/plugins/GeneratorPlugin.model.d.ts +42 -0
- package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -0
- package/dist/core/plugins/GeneratorPlugin.model.js +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.js +115 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.js +62 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts +28 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.js +160 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts +6 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts.map +1 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.js +13 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts +6 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -0
- package/dist/core/plugins/getBuiltinPlugins.js +10 -0
- package/dist/core/plugins/index.d.ts +4 -0
- package/dist/core/plugins/index.d.ts.map +1 -0
- package/dist/core/plugins/index.js +5 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts +6 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -0
- package/dist/core/plugins/loadGeneratorPlugins.js +94 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +537 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +66 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +45 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.js +640 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +132 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts +2 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts.map +1 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.js +156 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts +43 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -0
- package/dist/core/strict/validateOpenApiStrict.js +253 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts +2 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/Templates.model.d.ts +4 -1
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
- package/dist/core/types/enums/ModelsMode.enum.d.ts +5 -0
- package/dist/core/types/enums/ModelsMode.enum.d.ts.map +1 -0
- package/dist/core/types/enums/ModelsMode.enum.js +8 -0
- package/dist/core/types/shared/Client.model.d.ts +2 -0
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/DiffInfo.model.d.ts +13 -0
- package/dist/core/types/shared/DiffInfo.model.d.ts.map +1 -0
- package/dist/core/types/shared/DiffInfo.model.js +2 -0
- package/dist/core/types/shared/Miracle.model.d.ts +13 -0
- package/dist/core/types/shared/Miracle.model.d.ts.map +1 -0
- package/dist/core/types/shared/Miracle.model.js +2 -0
- package/dist/core/types/shared/Model.model.d.ts +23 -0
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/types/shared/Operation.model.d.ts +5 -0
- package/dist/core/types/shared/Operation.model.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +9 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts +2 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +108 -0
- package/dist/core/utils/__tests__/getMappedType.test.js +2 -0
- package/dist/core/utils/__tests__/getOperationResponseCode.test.js +7 -2
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getOperationResults.test.js +43 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +27 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/modelHelpers.test.js +151 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.js +67 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.js +26 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts +2 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +116 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +122 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
- package/dist/core/utils/__tests__/writeClientModels.test.js +50 -0
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts +14 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -0
- package/dist/core/utils/applyDiffReportToClient.js +367 -0
- package/dist/core/utils/getMappedType.d.ts.map +1 -1
- package/dist/core/utils/getMappedType.js +2 -0
- package/dist/core/utils/getOperationResponseCode.d.ts.map +1 -1
- package/dist/core/utils/getOperationResponseCode.js +10 -8
- package/dist/core/utils/getRelativeModelPath.d.ts +9 -0
- package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -0
- package/dist/core/utils/getRelativeModelPath.js +37 -0
- package/dist/core/utils/loadDiffReport.d.ts +39 -0
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -0
- package/dist/core/utils/loadDiffReport.js +51 -0
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +37 -3
- package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessModelImports.js +14 -1
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -2
- package/dist/core/utils/precompileTemplates.js +1 -0
- package/dist/core/utils/prepareDtoModels.d.ts +3 -0
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -0
- package/dist/core/utils/prepareDtoModels.js +189 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +29 -1
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +48 -41
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +1 -4
- package/dist/core/utils/validateRawOptions.d.ts +1 -1
- package/dist/core/utils/validateRawOptions.d.ts.map +1 -1
- package/dist/core/utils/validateRawOptions.js +4 -2
- package/dist/core/utils/writeClientCore.d.ts +2 -0
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +6 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts +1 -0
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +2 -2
- package/dist/core/utils/writeClientExecutor.d.ts +6 -1
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +22 -3
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +3 -1
- package/dist/core/utils/writeClientModels.d.ts +6 -0
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +24 -3
- package/dist/core/utils/writeClientModelsIndex.d.ts +2 -0
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +2 -2
- package/dist/core/utils/writeClientSchemas.d.ts +6 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +16 -3
- package/dist/core/utils/writeClientServices.d.ts +2 -0
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +6 -2
- package/dist/templatesCompiled/cli/openApiConfig.d.ts +4 -1
- package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/openApiConfig.js +88 -37
- package/dist/templatesCompiled/client/core/ApiError.js +1 -1
- package/dist/templatesCompiled/client/core/ApiRequestOptions.js +1 -1
- package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
- package/dist/templatesCompiled/client/core/BaseDto.d.ts +8 -0
- package/dist/templatesCompiled/client/core/BaseDto.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/BaseDto.js +18 -0
- package/dist/templatesCompiled/client/core/axios/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +3 -3
- package/dist/templatesCompiled/client/core/axios/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts +8 -0
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/dtoUtils.js +18 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
- package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
- package/dist/templatesCompiled/client/core/functions/isBinary.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
- package/dist/templatesCompiled/client/core/node/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +51 -13
- package/dist/templatesCompiled/client/exportModels.d.ts +34 -0
- package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportModels.js +280 -0
- package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
- package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportSchema.js +37 -7
- package/dist/templatesCompiled/client/exportService.d.ts +9 -4
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +96 -37
- package/dist/templatesCompiled/client/indexCore.d.ts +3 -1
- package/dist/templatesCompiled/client/indexCore.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexCore.js +13 -2
- package/dist/templatesCompiled/client/indexFull.d.ts +10 -7
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +54 -33
- package/dist/templatesCompiled/client/indexModels.d.ts +7 -5
- package/dist/templatesCompiled/client/indexModels.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexModels.js +27 -18
- package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexSimple.js +4 -1
- package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +144 -63
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +1 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +21 -17
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts +13 -5
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/exportInterface.js +91 -21
- package/dist/templatesCompiled/client/partials/result.d.ts +6 -4
- package/dist/templatesCompiled/client/partials/result.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/result.js +16 -6
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts +1 -0
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.js +11 -4
- package/dist/templatesCompiled/client/yup/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +22 -16
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +72 -60
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +77 -61
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
- package/package.json +8 -6
- package/dist/common/defaultOptions.d.ts +0 -3
- package/dist/common/defaultOptions.d.ts.map +0 -1
- package/dist/common/defaultOptions.js +0 -28
- package/dist/core/utils/advancedDeduplicatePath.d.ts +0 -5
- package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
- package/dist/core/utils/advancedDeduplicatePath.js +0 -29
|
@@ -13,166 +13,182 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return "
|
|
17
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minLength"), { "name": "if", "hash": {}, "fn": container.program(
|
|
18
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxLength"), { "name": "if", "hash": {}, "fn": container.program(
|
|
19
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "pattern"), { "name": "if", "hash": {}, "fn": container.program(
|
|
20
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "format"), { "name": "if", "hash": {}, "fn": container.program(
|
|
21
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
16
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 63 } } })) != null ? stack1 : "")
|
|
17
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minLength"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 63 }, "end": { "line": 2, "column": 108 } } })) != null ? stack1 : "")
|
|
18
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxLength"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 108 }, "end": { "line": 2, "column": 153 } } })) != null ? stack1 : "")
|
|
19
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "pattern"), { "name": "if", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 153 }, "end": { "line": 2, "column": 198 } } })) != null ? stack1 : "")
|
|
20
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "format"), { "name": "if", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 198 }, "end": { "line": 2, "column": 415 } } })) != null ? stack1 : "")
|
|
21
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 415 }, "end": { "line": 2, "column": 451 } } })) != null ? stack1 : "")
|
|
22
22
|
+ "\n";
|
|
23
23
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
24
|
+
return "z.coerce.string()";
|
|
25
|
+
}, "4": function (container, depth0, helpers, partials, data) {
|
|
26
|
+
return "z.string()";
|
|
27
|
+
}, "6": function (container, depth0, helpers, partials, data) {
|
|
24
28
|
var stack1;
|
|
25
29
|
return ".min("
|
|
26
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "minLength", { "start": { "line": 2, "column":
|
|
30
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "minLength", { "start": { "line": 2, "column": 88 }, "end": { "line": 2, "column": 97 } }), depth0)) != null ? stack1 : "")
|
|
27
31
|
+ ")";
|
|
28
|
-
}, "
|
|
32
|
+
}, "8": function (container, depth0, helpers, partials, data) {
|
|
29
33
|
var stack1;
|
|
30
34
|
return ".max("
|
|
31
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "maxLength", { "start": { "line": 2, "column":
|
|
35
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "maxLength", { "start": { "line": 2, "column": 133 }, "end": { "line": 2, "column": 142 } }), depth0)) != null ? stack1 : "")
|
|
32
36
|
+ ")";
|
|
33
|
-
}, "
|
|
37
|
+
}, "10": function (container, depth0, helpers, partials, data) {
|
|
34
38
|
var stack1;
|
|
35
39
|
return ".regex(/"
|
|
36
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "pattern", { "start": { "line": 2, "column":
|
|
40
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "pattern", { "start": { "line": 2, "column": 179 }, "end": { "line": 2, "column": 186 } }), depth0)) != null ? stack1 : "")
|
|
37
41
|
+ "/)";
|
|
38
|
-
}, "
|
|
42
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
39
43
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
40
44
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
41
45
|
return parent[propertyName];
|
|
42
46
|
}
|
|
43
47
|
return undefined;
|
|
44
48
|
};
|
|
45
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date-time", { "name": "equals", "hash": {}, "fn": container.program(
|
|
46
|
-
}, "
|
|
49
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date-time", { "name": "equals", "hash": {}, "fn": container.program(13, data, 0), "inverse": container.program(15, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 212 }, "end": { "line": 2, "column": 408 } } })) != null ? stack1 : "");
|
|
50
|
+
}, "13": function (container, depth0, helpers, partials, data) {
|
|
47
51
|
return ".datetime()";
|
|
48
|
-
}, "
|
|
52
|
+
}, "15": function (container, depth0, helpers, partials, data) {
|
|
49
53
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
50
54
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
51
55
|
return parent[propertyName];
|
|
52
56
|
}
|
|
53
57
|
return undefined;
|
|
54
58
|
};
|
|
55
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date", { "name": "equals", "hash": {}, "fn": container.program(
|
|
56
|
-
}, "
|
|
59
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date", { "name": "equals", "hash": {}, "fn": container.program(16, data, 0), "inverse": container.program(18, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 253 }, "end": { "line": 2, "column": 397 } } })) != null ? stack1 : "");
|
|
60
|
+
}, "16": function (container, depth0, helpers, partials, data) {
|
|
57
61
|
return ".date()";
|
|
58
|
-
}, "
|
|
62
|
+
}, "18": function (container, depth0, helpers, partials, data) {
|
|
59
63
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
60
64
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
61
65
|
return parent[propertyName];
|
|
62
66
|
}
|
|
63
67
|
return undefined;
|
|
64
68
|
};
|
|
65
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "email", { "name": "equals", "hash": {}, "fn": container.program(
|
|
66
|
-
}, "
|
|
69
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "email", { "name": "equals", "hash": {}, "fn": container.program(19, data, 0), "inverse": container.program(21, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 289 }, "end": { "line": 2, "column": 397 } } })) != null ? stack1 : "");
|
|
70
|
+
}, "19": function (container, depth0, helpers, partials, data) {
|
|
67
71
|
return ".email()";
|
|
68
|
-
}, "
|
|
72
|
+
}, "21": function (container, depth0, helpers, partials, data) {
|
|
69
73
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
70
74
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
71
75
|
return parent[propertyName];
|
|
72
76
|
}
|
|
73
77
|
return undefined;
|
|
74
78
|
};
|
|
75
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uri", { "name": "equals", "hash": {}, "fn": container.program(
|
|
76
|
-
}, "
|
|
79
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uri", { "name": "equals", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.program(24, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 327 }, "end": { "line": 2, "column": 397 } } })) != null ? stack1 : "");
|
|
80
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
77
81
|
return ".url()";
|
|
78
|
-
}, "
|
|
82
|
+
}, "24": function (container, depth0, helpers, partials, data) {
|
|
79
83
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
80
84
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
81
85
|
return parent[propertyName];
|
|
82
86
|
}
|
|
83
87
|
return undefined;
|
|
84
88
|
};
|
|
85
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uuid", { "name": "equals", "hash": {}, "fn": container.program(
|
|
86
|
-
}, "
|
|
89
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uuid", { "name": "equals", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 361 }, "end": { "line": 2, "column": 397 } } })) != null ? stack1 : "");
|
|
90
|
+
}, "25": function (container, depth0, helpers, partials, data) {
|
|
87
91
|
return ".uuid()";
|
|
88
|
-
}, "
|
|
92
|
+
}, "27": function (container, depth0, helpers, partials, data) {
|
|
89
93
|
return ".nullable()";
|
|
90
|
-
}, "
|
|
94
|
+
}, "29": function (container, depth0, helpers, partials, data) {
|
|
91
95
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
92
96
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
93
97
|
return parent[propertyName];
|
|
94
98
|
}
|
|
95
99
|
return undefined;
|
|
96
100
|
};
|
|
97
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "number", { "name": "equals", "hash": {}, "fn": container.program(
|
|
98
|
-
}, "
|
|
101
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "number", { "name": "equals", "hash": {}, "fn": container.program(30, data, 0), "inverse": container.program(41, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
|
|
102
|
+
}, "30": function (container, depth0, helpers, partials, data) {
|
|
99
103
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
100
104
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
101
105
|
return parent[propertyName];
|
|
102
106
|
}
|
|
103
107
|
return undefined;
|
|
104
108
|
};
|
|
105
|
-
return "
|
|
106
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
107
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
108
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(
|
|
109
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
109
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0), "inverse": container.program(33, data, 0), "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 63 } } })) != null ? stack1 : "")
|
|
110
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(35, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 63 }, "end": { "line": 4, "column": 104 } } })) != null ? stack1 : "")
|
|
111
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 104 }, "end": { "line": 4, "column": 145 } } })) != null ? stack1 : "")
|
|
112
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(39, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 145 }, "end": { "line": 4, "column": 199 } } })) != null ? stack1 : "")
|
|
113
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 199 }, "end": { "line": 4, "column": 235 } } })) != null ? stack1 : "")
|
|
110
114
|
+ "\n";
|
|
111
|
-
}, "
|
|
115
|
+
}, "31": function (container, depth0, helpers, partials, data) {
|
|
116
|
+
return "z.coerce.number()";
|
|
117
|
+
}, "33": function (container, depth0, helpers, partials, data) {
|
|
118
|
+
return "z.number()";
|
|
119
|
+
}, "35": function (container, depth0, helpers, partials, data) {
|
|
112
120
|
var stack1;
|
|
113
121
|
return ".min("
|
|
114
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "minimum", { "start": { "line": 4, "column":
|
|
122
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "minimum", { "start": { "line": 4, "column": 86 }, "end": { "line": 4, "column": 93 } }), depth0)) != null ? stack1 : "")
|
|
115
123
|
+ ")";
|
|
116
|
-
}, "
|
|
124
|
+
}, "37": function (container, depth0, helpers, partials, data) {
|
|
117
125
|
var stack1;
|
|
118
126
|
return ".max("
|
|
119
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "maximum", { "start": { "line": 4, "column":
|
|
127
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "maximum", { "start": { "line": 4, "column": 127 }, "end": { "line": 4, "column": 134 } }), depth0)) != null ? stack1 : "")
|
|
120
128
|
+ ")";
|
|
121
|
-
}, "
|
|
129
|
+
}, "39": function (container, depth0, helpers, partials, data) {
|
|
122
130
|
var stack1;
|
|
123
131
|
return ".multipleOf("
|
|
124
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "multipleOf", { "start": { "line": 4, "column":
|
|
132
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "multipleOf", { "start": { "line": 4, "column": 178 }, "end": { "line": 4, "column": 188 } }), depth0)) != null ? stack1 : "")
|
|
125
133
|
+ ")";
|
|
126
|
-
}, "
|
|
134
|
+
}, "41": function (container, depth0, helpers, partials, data) {
|
|
127
135
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
128
136
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
129
137
|
return parent[propertyName];
|
|
130
138
|
}
|
|
131
139
|
return undefined;
|
|
132
140
|
};
|
|
133
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "integer", { "name": "equals", "hash": {}, "fn": container.program(
|
|
134
|
-
}, "
|
|
141
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "integer", { "name": "equals", "hash": {}, "fn": container.program(42, data, 0), "inverse": container.program(47, data, 0), "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
|
|
142
|
+
}, "42": function (container, depth0, helpers, partials, data) {
|
|
135
143
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
136
144
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
137
145
|
return parent[propertyName];
|
|
138
146
|
}
|
|
139
147
|
return undefined;
|
|
140
148
|
};
|
|
141
|
-
return "
|
|
142
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
143
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
144
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(
|
|
145
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
149
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(43, data, 0), "inverse": container.program(45, data, 0), "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 75 } } })) != null ? stack1 : "")
|
|
150
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(35, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 75 }, "end": { "line": 6, "column": 116 } } })) != null ? stack1 : "")
|
|
151
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 116 }, "end": { "line": 6, "column": 157 } } })) != null ? stack1 : "")
|
|
152
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(39, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 157 }, "end": { "line": 6, "column": 211 } } })) != null ? stack1 : "")
|
|
153
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 211 }, "end": { "line": 6, "column": 247 } } })) != null ? stack1 : "")
|
|
146
154
|
+ "\n";
|
|
147
|
-
}, "
|
|
155
|
+
}, "43": function (container, depth0, helpers, partials, data) {
|
|
156
|
+
return "z.coerce.number().int()";
|
|
157
|
+
}, "45": function (container, depth0, helpers, partials, data) {
|
|
158
|
+
return "z.number().int()";
|
|
159
|
+
}, "47": function (container, depth0, helpers, partials, data) {
|
|
148
160
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
149
161
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
150
162
|
return parent[propertyName];
|
|
151
163
|
}
|
|
152
164
|
return undefined;
|
|
153
165
|
};
|
|
154
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "boolean", { "name": "equals", "hash": {}, "fn": container.program(
|
|
155
|
-
}, "
|
|
156
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
166
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "boolean", { "name": "equals", "hash": {}, "fn": container.program(48, data, 0), "inverse": container.program(53, data, 0), "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
|
|
167
|
+
}, "48": function (container, depth0, helpers, partials, data) {
|
|
168
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
157
169
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
158
170
|
return parent[propertyName];
|
|
159
171
|
}
|
|
160
172
|
return undefined;
|
|
161
173
|
};
|
|
162
|
-
return "
|
|
163
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
174
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(49, data, 0), "inverse": container.program(51, data, 0), "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 65 } } })) != null ? stack1 : "")
|
|
175
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 65 }, "end": { "line": 8, "column": 101 } } })) != null ? stack1 : "")
|
|
164
176
|
+ "\n";
|
|
165
|
-
}, "
|
|
177
|
+
}, "49": function (container, depth0, helpers, partials, data) {
|
|
178
|
+
return "z.coerce.boolean()";
|
|
179
|
+
}, "51": function (container, depth0, helpers, partials, data) {
|
|
180
|
+
return "z.boolean()";
|
|
181
|
+
}, "53": function (container, depth0, helpers, partials, data) {
|
|
166
182
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
167
183
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
168
184
|
return parent[propertyName];
|
|
169
185
|
}
|
|
170
186
|
return undefined;
|
|
171
187
|
};
|
|
172
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "null", { "name": "equals", "hash": {}, "fn": container.program(
|
|
173
|
-
}, "
|
|
188
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "null", { "name": "equals", "hash": {}, "fn": container.program(54, data, 0), "inverse": container.program(56, data, 0), "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 0 } } })) != null ? stack1 : "");
|
|
189
|
+
}, "54": function (container, depth0, helpers, partials, data) {
|
|
174
190
|
return "z.null()\n";
|
|
175
|
-
}, "
|
|
191
|
+
}, "56": function (container, depth0, helpers, partials, data) {
|
|
176
192
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
177
193
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
178
194
|
return parent[propertyName];
|
|
@@ -180,7 +196,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
180
196
|
return undefined;
|
|
181
197
|
};
|
|
182
198
|
return "z.any()"
|
|
183
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
199
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 43 } } })) != null ? stack1 : "")
|
|
184
200
|
+ "\n";
|
|
185
201
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
186
202
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -189,5 +205,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
189
205
|
}
|
|
190
206
|
return undefined;
|
|
191
207
|
};
|
|
192
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "string", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(
|
|
208
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "string", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(29, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 11 } } })) != null ? stack1 : "");
|
|
193
209
|
}, "useData": true };
|
|
@@ -3,8 +3,10 @@ declare const _default: {
|
|
|
3
3
|
"2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
4
4
|
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
5
|
"5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
-
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
7
|
-
"
|
|
6
|
+
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
7
|
+
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
+
"10": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
10
|
compiler: (string | number)[];
|
|
9
11
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
12
|
usePartial: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaInterface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zodSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA,wBAwDmC"}
|
|
@@ -24,17 +24,27 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
24
24
|
return " "
|
|
25
25
|
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
26
26
|
+ ": "
|
|
27
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "zodSchema"), depth0, { "name": "zodSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
28
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(depth0, "isRequired"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column":
|
|
29
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column":
|
|
27
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "zod/zodSchema"), depth0, { "name": "zod/zodSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
28
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(depth0, "isRequired"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 34 }, "end": { "line": 4, "column": 78 } } })) != null ? stack1 : "")
|
|
29
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 78 }, "end": { "line": 4, "column": 107 } } })) != null ? stack1 : "")
|
|
30
30
|
+ "\n";
|
|
31
31
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
32
|
return ".optional()";
|
|
33
33
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
34
34
|
return ",";
|
|
35
35
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
36
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
38
|
+
return parent[propertyName];
|
|
39
|
+
}
|
|
40
|
+
return undefined;
|
|
41
|
+
};
|
|
42
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "emptySchemaStrategy"), "semantic", { "name": "equals", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.program(10, data, 0), "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 11, "column": 11 } } })) != null ? stack1 : "");
|
|
43
|
+
}, "8": function (container, depth0, helpers, partials, data) {
|
|
44
|
+
return "}).catchall(z.unknown())\n";
|
|
45
|
+
}, "10": function (container, depth0, helpers, partials, data) {
|
|
36
46
|
return "})\n";
|
|
37
|
-
}, "
|
|
47
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
38
48
|
return ".nullable()";
|
|
39
49
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
40
50
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -44,7 +54,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
44
54
|
return undefined;
|
|
45
55
|
};
|
|
46
56
|
return "z.object({\n"
|
|
47
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line":
|
|
48
|
-
+ "})"
|
|
49
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
57
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 12, "column": 7 } } })) != null ? stack1 : "")
|
|
58
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 15, "column": 7 } } })) != null ? stack1 : "")
|
|
59
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 36 } } })) != null ? stack1 : "")
|
|
60
|
+
+ "\n";
|
|
50
61
|
}, "usePartial": true, "useData": true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-openapi-codegen",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0-beta.1",
|
|
4
4
|
"description": "Library that generates Typescript clients based on the OpenAPI specification. It bases on openapi-typescript-codegen",
|
|
5
5
|
"author": "Alexey Zverev",
|
|
6
6
|
"homepage": "https://github.com/ozonophore/openapi-codegen.git",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"test:unit": "node --experimental-test-coverage --import tsx --test-name-pattern \"@unit\" --test \"**/*.test.ts\"",
|
|
55
55
|
"test:update": "UPDATE_SNAPSHOTS=true npm run test:unit",
|
|
56
56
|
"test:coverage": "node --experimental-test-coverage --import tsx --test-name-pattern \"@unit\" --test \"**/*.test.ts\"",
|
|
57
|
-
"eslint": "eslint \"./src/**/*.ts\"
|
|
58
|
-
"eslint:fix": "eslint \"./src/**/*.ts\"
|
|
57
|
+
"eslint": "eslint \"./src/**/*.ts\"",
|
|
58
|
+
"eslint:fix": "eslint \"./src/**/*.ts\" --fix",
|
|
59
59
|
"prettier": "prettier \"./src/**/*.ts\" \"./types/index.d.ts\" --check",
|
|
60
60
|
"prettier:fix": "prettier \"./src/**/*.ts\" \"./types/index.d.ts\" --write",
|
|
61
61
|
"prepublish": "npm run clean && npm run release",
|
|
@@ -67,20 +67,21 @@
|
|
|
67
67
|
"boxen": "^5.1.2",
|
|
68
68
|
"camelcase": "6.2.0",
|
|
69
69
|
"chalk": "^4.1.2",
|
|
70
|
-
"commander": "
|
|
70
|
+
"commander": "9.0.0",
|
|
71
71
|
"configstore": "^5.0.1",
|
|
72
|
+
"deep-diff": "^1.0.2",
|
|
72
73
|
"diff": "^8.0.2",
|
|
73
74
|
"enquirer": "^2.4.1",
|
|
74
75
|
"fast-deep-equal": "^3.1.3",
|
|
75
76
|
"figlet": "^1.8.0",
|
|
76
77
|
"handlebars": "4.7.6",
|
|
77
|
-
"joi": "
|
|
78
|
+
"joi": ">=17.13.3",
|
|
78
79
|
"json-schema": "0.4.0",
|
|
79
80
|
"leven": "^4.0.0",
|
|
80
81
|
"semver": "^7.7.1",
|
|
81
82
|
"winston": "^3.17.0",
|
|
82
83
|
"winston-daily-rotate-file": "^5.0.0",
|
|
83
|
-
"zod": "
|
|
84
|
+
"zod": ">=4.3.2"
|
|
84
85
|
},
|
|
85
86
|
"devDependencies": {
|
|
86
87
|
"@babel/cli": "7.14.8",
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"@eslint/js": "^9.29.0",
|
|
93
94
|
"@types/axios": "^0.14.0",
|
|
94
95
|
"@types/configstore": "^6.0.2",
|
|
96
|
+
"@types/deep-diff": "^1.0.5",
|
|
95
97
|
"@types/express": "4.17.13",
|
|
96
98
|
"@types/figlet": "^1.5.8",
|
|
97
99
|
"@types/glob": "^8.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultOptions.d.ts","sourceRoot":"","sources":["../../src/common/defaultOptions.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,cAAc,uBAuBV,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.defaultOptions = void 0;
|
|
7
|
-
const joi_1 = __importDefault(require("joi"));
|
|
8
|
-
const HttpClient_enum_1 = require("../core/types/enums/HttpClient.enum");
|
|
9
|
-
const ValidationLibrary_enum_1 = require("../core/types/enums/ValidationLibrary.enum");
|
|
10
|
-
exports.defaultOptions = joi_1.default.object({
|
|
11
|
-
input: joi_1.default.string().required(),
|
|
12
|
-
output: joi_1.default.string().required(),
|
|
13
|
-
httpClient: joi_1.default.string().valid(...Object.values(HttpClient_enum_1.HttpClient)),
|
|
14
|
-
outputCore: joi_1.default.string().optional(),
|
|
15
|
-
outputServices: joi_1.default.string().optional(),
|
|
16
|
-
outputModels: joi_1.default.string().optional(),
|
|
17
|
-
outputSchemas: joi_1.default.string().optional(),
|
|
18
|
-
useOptions: joi_1.default.boolean().optional(),
|
|
19
|
-
useUnionTypes: joi_1.default.boolean().optional(),
|
|
20
|
-
excludeCoreServiceFiles: joi_1.default.boolean().optional(),
|
|
21
|
-
request: joi_1.default.string().optional(),
|
|
22
|
-
interfacePrefix: joi_1.default.string().optional(),
|
|
23
|
-
enumPrefix: joi_1.default.string().optional(),
|
|
24
|
-
typePrefix: joi_1.default.string().optional(),
|
|
25
|
-
useCancelableRequest: joi_1.default.boolean().optional(),
|
|
26
|
-
useSeparatedIndexes: joi_1.default.boolean().optional(),
|
|
27
|
-
validationLibrary: joi_1.default.string().valid(...Object.values(ValidationLibrary_enum_1.ValidationLibrary)).optional(),
|
|
28
|
-
}).unknown(false);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"advancedDeduplicatePath.d.ts","sourceRoot":"","sources":["../../../src/core/utils/advancedDeduplicatePath.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B5D"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.advancedDeduplicatePath = advancedDeduplicatePath;
|
|
4
|
-
/**
|
|
5
|
-
* Advanced path deduplication - remove consecutive duplicate segments
|
|
6
|
-
*/
|
|
7
|
-
function advancedDeduplicatePath(path) {
|
|
8
|
-
const segments = path.split('/');
|
|
9
|
-
const result = [];
|
|
10
|
-
for (let i = 0; i < segments.length; i++) {
|
|
11
|
-
const segment = segments[i];
|
|
12
|
-
if (segment === '' || segment === '.') {
|
|
13
|
-
continue;
|
|
14
|
-
}
|
|
15
|
-
if (segment === '..') {
|
|
16
|
-
if (result.length > 0) {
|
|
17
|
-
result.pop();
|
|
18
|
-
}
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
// Check if this segment is a duplicate of the previous one
|
|
22
|
-
if (result.length > 0 && result[result.length - 1] === segment) {
|
|
23
|
-
// Skip duplicate segment
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
result.push(segment);
|
|
27
|
-
}
|
|
28
|
-
return result.length > 0 ? '/' + result.join('/') : '';
|
|
29
|
-
}
|