├── .github ├── scripts │ └── create-github-release.sh └── workflows │ ├── release.yaml │ ├── update-website.yaml │ └── verify.yaml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── build.sh ├── dco.txt ├── dependencies └── org │ └── jsweet │ ├── ext │ ├── sourcemap-builder │ │ └── 1.0.0 │ │ │ ├── sourcemap-builder-1.0.0.jar │ │ │ └── sourcemap-builder-1.0.0.pom │ └── typescript.java-ts.core │ │ ├── 1.4.0.1 │ │ ├── typescript.java-ts.core-1.4.0.1.jar │ │ └── typescript.java-ts.core-1.4.0.1.pom │ │ ├── 2.0.3 │ │ ├── typescript.java-ts.core-2.0.3-sources.jar │ │ ├── typescript.java-ts.core-2.0.3.jar │ │ └── typescript.java-ts.core-2.0.3.pom │ │ └── 2.0.4 │ │ ├── typescript.java-ts.core-2.0.4-sources.jar │ │ ├── typescript.java-ts.core-2.0.4.jar │ │ └── typescript.java-ts.core-2.0.4.pom │ ├── jsweet-maven-plugin │ └── 2.3.5 │ │ ├── jsweet-maven-plugin-2.3.5.jar │ │ └── jsweet-maven-plugin-2.3.5.pom │ └── jsweet-transpiler │ └── 2.3.5 │ ├── jsweet-transpiler-2.3.5.jar │ └── jsweet-transpiler-2.3.5.pom ├── jsweet_extension ├── build_extensions.sh └── io │ └── apicurio │ └── JacksonAdapter.java ├── jsweetconfig.json ├── pom.xml ├── renovate.json └── src ├── main ├── java │ └── io │ │ └── apicurio │ │ └── datamodels │ │ ├── Library.java │ │ ├── ModelTypeDetector.java │ │ ├── TraverserDirection.java │ │ ├── VisitorUtil.java │ │ ├── _build │ │ └── GenerateCoreTs.java │ │ ├── cmd │ │ ├── AbstractCommand.java │ │ ├── CommandFactory.java │ │ ├── ICommand.java │ │ └── commands │ │ │ ├── AbstractReplaceNodeCommand.java │ │ │ ├── AbstractSchemaInhCommand.java │ │ │ ├── AddChannelItemCommand.java │ │ │ ├── AddExampleCommand.java │ │ │ ├── AddPathItemCommand.java │ │ │ ├── AddResponseDefinitionCommand.java │ │ │ ├── AddSchemaDefinitionCommand.java │ │ │ ├── AddSecurityRequirementCommand.java │ │ │ ├── AggregateCommand.java │ │ │ ├── ChangeContactCommand.java │ │ │ ├── ChangeDescriptionCommand.java │ │ │ ├── ChangeLicenseCommand.java │ │ │ ├── ChangePropertyCommand.java │ │ │ ├── ChangeTitleCommand.java │ │ │ ├── ChangeVersionCommand.java │ │ │ ├── DeleteAllChildSchemasCommand.java │ │ │ ├── DeleteAllExamplesCommand.java │ │ │ ├── DeleteAllExtensionsCommand.java │ │ │ ├── DeleteAllHeadersCommand.java │ │ │ ├── DeleteAllOperationsCommand.java │ │ │ ├── DeleteAllParametersCommand.java │ │ │ ├── DeleteAllPropertiesCommand.java │ │ │ ├── DeleteAllResponsesCommand.java │ │ │ ├── DeleteAllSecurityRequirementsCommand.java │ │ │ ├── DeleteAllSecuritySchemesCommand.java │ │ │ ├── DeleteAllServersCommand.java │ │ │ ├── DeleteAllTagsCommand.java │ │ │ ├── DeleteContactCommand.java │ │ │ ├── DeleteExtensionCommand.java │ │ │ ├── DeleteLicenseCommand.java │ │ │ ├── DeleteMediaTypeCommand.java │ │ │ ├── DeleteNodeCommand.java │ │ │ ├── ReplaceOperationCommand.java │ │ │ ├── ReplacePathItemCommand.java │ │ │ ├── ReplaceResponseDefinitionCommand.java │ │ │ ├── ReplaceSchemaDefinitionCommand.java │ │ │ ├── ReplaceSecurityRequirementCommand.java │ │ │ └── SetPropertyCommand.java │ │ ├── deref │ │ ├── AllReferenceableNodeVisitor.java │ │ ├── AsyncApi2NodeImporter.java │ │ ├── DereferenceConstants.java │ │ ├── Dereferencer.java │ │ ├── InlineOrImportVisitor.java │ │ ├── InternalRefResolverVisitor.java │ │ ├── IsDefinitionParentVisitor.java │ │ ├── OpenApi2NodeImporter.java │ │ ├── OpenApi3NodeImporter.java │ │ ├── ReferencedNodeImporter.java │ │ ├── SetContextVisitor.java │ │ └── UnresolvedReferenceNodeVisitor.java │ │ ├── paths │ │ ├── NodePath.java │ │ ├── NodePathCreationVisitor.java │ │ ├── NodePathSegment.java │ │ └── NodePathUtil.java │ │ ├── refs │ │ ├── IReferenceResolver.java │ │ ├── LocalReferenceResolver.java │ │ ├── Reference.java │ │ ├── ReferenceContext.java │ │ ├── ReferenceResolverChain.java │ │ ├── ReferenceUtil.java │ │ ├── ResolverOptions.java │ │ └── ResolverOptionsType.java │ │ ├── transform │ │ ├── ExternalDocsCreator.java │ │ ├── OpenApi20to30TransformationVisitor.java │ │ └── OpenApi30to31TransformationVisitor.java │ │ ├── util │ │ ├── CommandUtil.java │ │ ├── LoggerUtil.java │ │ ├── ModelTypeUtil.java │ │ ├── NodeUtil.java │ │ ├── RegexUtil.java │ │ └── ValidationUtil.java │ │ ├── validation │ │ ├── DefaultSeverityRegistry.java │ │ ├── IValidationProblemReporter.java │ │ ├── IValidationSeverityRegistry.java │ │ ├── ValidationProblem.java │ │ ├── ValidationProblemSeverity.java │ │ ├── ValidationRule.java │ │ ├── ValidationRuleMetaData.java │ │ ├── ValidationRuleSet.java │ │ ├── ValidationVisitor.java │ │ └── rules │ │ │ ├── invalid │ │ │ ├── format │ │ │ │ ├── InvalidApiDescriptionRule.java │ │ │ │ ├── InvalidContactEmailRule.java │ │ │ │ ├── InvalidContactUrlRule.java │ │ │ │ ├── InvalidExternalDocsDescriptionRule.java │ │ │ │ ├── InvalidLicenseUrlRule.java │ │ │ │ ├── InvalidServerDescriptionRule.java │ │ │ │ ├── InvalidServerUrlRule.java │ │ │ │ ├── InvalidTagDescriptionRule.java │ │ │ │ ├── InvalidTermsOfServiceUrlRule.java │ │ │ │ ├── OasInvalidApiBasePathRule.java │ │ │ │ ├── OasInvalidApiHostRule.java │ │ │ │ ├── OasInvalidExampleDescriptionRule.java │ │ │ │ ├── OasInvalidExternalDocsUrlRule.java │ │ │ │ ├── OasInvalidHeaderDefaultValueRule.java │ │ │ │ ├── OasInvalidHeaderDescriptionRule.java │ │ │ │ ├── OasInvalidLinkDescriptionRule.java │ │ │ │ ├── OasInvalidOAuthAuthorizationUrlRule.java │ │ │ │ ├── OasInvalidOAuthRefreshUrlRule.java │ │ │ │ ├── OasInvalidOAuthTokenUrlRule.java │ │ │ │ ├── OasInvalidOpenIDConnectUrlRule.java │ │ │ │ ├── OasInvalidOperationConsumesRule.java │ │ │ │ ├── OasInvalidOperationDescriptionRule.java │ │ │ │ ├── OasInvalidOperationProducesRule.java │ │ │ │ ├── OasInvalidParameterDescriptionRule.java │ │ │ │ ├── OasInvalidPathItemDescriptionRule.java │ │ │ │ ├── OasInvalidRequestBodyDescriptionRule.java │ │ │ │ ├── OasInvalidResponseDescriptionRule.java │ │ │ │ ├── OasInvalidSchemaItemsDefaultValueRule.java │ │ │ │ ├── OasInvalidSecuritySchemeAuthUrlRule.java │ │ │ │ ├── OasInvalidSecuritySchemeDescriptionRule.java │ │ │ │ ├── OasInvalidSecuritySchemeTokenUrlRule.java │ │ │ │ ├── OasInvalidServerVariableDescriptionRule.java │ │ │ │ └── OasInvalidXmlNamespaceUrlRule.java │ │ │ ├── name │ │ │ │ ├── OasDuplicatePathSegmentRule.java │ │ │ │ ├── OasEmptyPathSegmentRule.java │ │ │ │ ├── OasIdenticalPathTemplateRule.java │ │ │ │ ├── OasInvalidCallbackDefinitionNameRule.java │ │ │ │ ├── OasInvalidExampleDefinitionNameRule.java │ │ │ │ ├── OasInvalidHeaderDefinitionNameRule.java │ │ │ │ ├── OasInvalidHttpResponseCodeRule.java │ │ │ │ ├── OasInvalidLinkDefinitionNameRule.java │ │ │ │ ├── OasInvalidParameterDefNameRule.java │ │ │ │ ├── OasInvalidPathSegmentRule.java │ │ │ │ ├── OasInvalidPropertyNameRule.java │ │ │ │ ├── OasInvalidRequestBodyDefinitionNameRule.java │ │ │ │ ├── OasInvalidResponseDefNameRule.java │ │ │ │ ├── OasInvalidSchemaDefNameRule.java │ │ │ │ ├── OasInvalidScopeNameRule.java │ │ │ │ ├── OasInvalidSecuritySchemeNameRule.java │ │ │ │ ├── OasUnmatchedEncodingPropertyRule.java │ │ │ │ └── OasUnmatchedExampleTypeRule.java │ │ │ ├── reference │ │ │ │ ├── OasInvalidCallbackReferenceRule.java │ │ │ │ ├── OasInvalidExampleReferenceRule.java │ │ │ │ ├── OasInvalidHeaderReferenceRule.java │ │ │ │ ├── OasInvalidLinkOperationReferenceRule.java │ │ │ │ ├── OasInvalidLinkReferenceRule.java │ │ │ │ ├── OasInvalidParameterReferenceRule.java │ │ │ │ ├── OasInvalidPathItemReferenceRule.java │ │ │ │ ├── OasInvalidRequestBodyReferenceRule.java │ │ │ │ ├── OasInvalidResponseReferenceRule.java │ │ │ │ ├── OasInvalidSchemaReferenceRule.java │ │ │ │ ├── OasInvalidSecurityRequirementNameRule.java │ │ │ │ └── OasInvalidSecuritySchemeReferenceRule.java │ │ │ ├── type │ │ │ │ ├── OasInvalidPropertyTypeValidationRule.java │ │ │ │ ├── OasInvalidSchemaArrayItemsRule.java │ │ │ │ └── OasInvalidSchemaTypeValueRule.java │ │ │ └── value │ │ │ │ ├── AbstractInvalidPropertyValueRule.java │ │ │ │ ├── OasAllowReservedNotAllowedForParamRule.java │ │ │ │ ├── OasAllowReservedNotAllowedRule.java │ │ │ │ ├── OasEncodingStyleNotAllowedRule.java │ │ │ │ ├── OasExplodeNotAllowedRule.java │ │ │ │ ├── OasFormDataParamNotAllowedRule.java │ │ │ │ ├── OasInvalidApiConsumesMTRule.java │ │ │ │ ├── OasInvalidApiProducesMTRule.java │ │ │ │ ├── OasInvalidApiSchemeRule.java │ │ │ │ ├── OasInvalidEncodingForMPMTRule.java │ │ │ │ ├── OasInvalidHeaderStyleRule.java │ │ │ │ ├── OasInvalidHttpSecuritySchemeTypeRule.java │ │ │ │ ├── OasInvalidLinkOperationIdRule.java │ │ │ │ ├── OasInvalidOperationIdRule.java │ │ │ │ ├── OasInvalidOperationSchemeRule.java │ │ │ │ ├── OasInvalidSecurityReqScopesRule.java │ │ │ │ ├── OasMissingPathParamDefinitionRule.java │ │ │ │ ├── OasMissingResponseForOperationRule.java │ │ │ │ ├── OasOperationSummaryTooLongRule.java │ │ │ │ ├── OasPathParamNotFoundRule.java │ │ │ │ ├── OasRequiredParamWithDefaultValueRule.java │ │ │ │ ├── OasSecurityRequirementScopesMustBeEmptyRule.java │ │ │ │ ├── OasServerVarNotFoundInTemplateRule.java │ │ │ │ ├── OasUnexpectedArrayCollectionFormatRule.java │ │ │ │ ├── OasUnexpectedHeaderCollectionFormatRule.java │ │ │ │ ├── OasUnexpectedHeaderUsageRule.java │ │ │ │ ├── OasUnexpectedNumOfParamMTsRule.java │ │ │ │ ├── OasUnexpectedNumberOfHeaderMTsRule.java │ │ │ │ ├── OasUnexpectedParamAllowEmptyValueRule.java │ │ │ │ ├── OasUnexpectedParamCollectionFormatRule.java │ │ │ │ ├── OasUnexpectedParamMultiRule.java │ │ │ │ ├── OasUnexpectedRequestBodyRule.java │ │ │ │ ├── OasUnexpectedSecurityRequirementScopesRule.java │ │ │ │ ├── OasUnexpectedUsageOfBearerTokenRule.java │ │ │ │ ├── OasUnexpectedUsageOfDiscriminatorRule.java │ │ │ │ ├── OasUnexpectedXmlWrappingRule.java │ │ │ │ ├── OasUnknownApiKeyLocationRule.java │ │ │ │ ├── OasUnknownArrayCollectionFormatRule.java │ │ │ │ ├── OasUnknownArrayFormatRule.java │ │ │ │ ├── OasUnknownArrayTypeRule.java │ │ │ │ ├── OasUnknownCookieParamStyleRule.java │ │ │ │ ├── OasUnknownEncodingStyleRule.java │ │ │ │ ├── OasUnknownHeaderCollectionFormatRule.java │ │ │ │ ├── OasUnknownHeaderFormatRule.java │ │ │ │ ├── OasUnknownHeaderParamStyleRule.java │ │ │ │ ├── OasUnknownHeaderTypeRule.java │ │ │ │ ├── OasUnknownOauthFlowTypeRule.java │ │ │ │ ├── OasUnknownParamCollectionFormatRule.java │ │ │ │ ├── OasUnknownParamFormatRule.java │ │ │ │ ├── OasUnknownParamLocationRule.java │ │ │ │ ├── OasUnknownParamStyleRule.java │ │ │ │ ├── OasUnknownParamTypeRule.java │ │ │ │ ├── OasUnknownPathParamStyleRule.java │ │ │ │ ├── OasUnknownQueryParamStyleRule.java │ │ │ │ └── OasUnknownSecuritySchemeTypeRule.java │ │ │ ├── mutex │ │ │ ├── OasBodyAndFormDataMutualExclusivityRule.java │ │ │ ├── OasExampleValueMutualExclusivityRule.java │ │ │ ├── OasHeaderExamplesMutualExclusivityRule.java │ │ │ ├── OasHeaderSchemaContentMutualExclusivityRule.java │ │ │ ├── OasLinkOperationRefMutualExclusivityRule.java │ │ │ ├── OasMediaTypeExamplesMutualExclusivityRule.java │ │ │ ├── OasParameterExamplesMutualExclusivityRule.java │ │ │ └── OasParameterSchemaContentMutualExclusivityRule.java │ │ │ ├── other │ │ │ ├── OasBodyParameterUniquenessValidationRule.java │ │ │ ├── OasIgnoredContentTypeHeaderRule.java │ │ │ ├── OasIgnoredHeaderParameterRule.java │ │ │ ├── OasOperationIdUniquenessValidationRule.java │ │ │ ├── OasParameterUniquenessValidationRule.java │ │ │ ├── OasUnknownPropertyRule.java │ │ │ ├── SecurityRequirementUniquenessValidationRule.java │ │ │ └── TagUniquenessValidationRule.java │ │ │ └── required │ │ │ ├── AaMissingCorrelationIdRule.java │ │ │ ├── AasMissingServerProtocolRule.java │ │ │ ├── MissingApiKeySchemeParamLocationRule.java │ │ │ ├── MissingApiKeySchemeParamNameRule.java │ │ │ ├── MissingApiTitleRule.java │ │ │ ├── MissingApiVersionRule.java │ │ │ ├── MissingHttpSecuritySchemeTypeRule.java │ │ │ ├── MissingLicenseNameRule.java │ │ │ ├── MissingOAuthFlowAuthUrlRule.java │ │ │ ├── MissingOAuthFlowRokenUrlRule.java │ │ │ ├── MissingOAuthFlowScopesRule.java │ │ │ ├── MissingOAuthSecuritySchemeFlowsRule.java │ │ │ ├── MissingOpenIdConnectSecuritySchemeConnectUrlRule.java │ │ │ ├── MissingOperationDescriptionRule.java │ │ │ ├── MissingOperationIdRule.java │ │ │ ├── MissingOperationSummaryRule.java │ │ │ ├── MissingSecuritySchemeTypeRule.java │ │ │ ├── MissingServerTemplateUrlRule.java │ │ │ ├── MissingTagNameRule.java │ │ │ ├── OasMissingApiInformationRule.java │ │ │ ├── OasMissingApiPathsRule.java │ │ │ ├── OasMissingBodyParameterSchemaRule.java │ │ │ ├── OasMissingDiscriminatorPropertyNameRule.java │ │ │ ├── OasMissingExternalDocumentationUrlRule.java │ │ │ ├── OasMissingHeaderArrayInformationRule.java │ │ │ ├── OasMissingHeaderTypeRule.java │ │ │ ├── OasMissingItemsArrayInformationRule.java │ │ │ ├── OasMissingItemsTypeRule.java │ │ │ ├── OasMissingOAuthSchemeAuthUrlRule.java │ │ │ ├── OasMissingOAuthSchemeFlowTypeRule.java │ │ │ ├── OasMissingOAuthSchemeScopesRule.java │ │ │ ├── OasMissingOAuthSchemeTokenUrlRule.java │ │ │ ├── OasMissingOpenApiPropertyRule.java │ │ │ ├── OasMissingOperationResponsesRule.java │ │ │ ├── OasMissingOperationTagsRule.java │ │ │ ├── OasMissingParameterArrayTypeRule.java │ │ │ ├── OasMissingParameterLocationRule.java │ │ │ ├── OasMissingParameterNameRule.java │ │ │ ├── OasMissingParameterTypeRule.java │ │ │ ├── OasMissingRequestBodyContentRule.java │ │ │ ├── OasMissingResponseDefinitionDescriptionRule.java │ │ │ ├── OasMissingResponseDescriptionRule.java │ │ │ ├── OasMissingSchemaArrayInformationRule.java │ │ │ ├── OasMissingServerVarDefaultValueRule.java │ │ │ ├── OasPathParamsMustBeRequiredRule.java │ │ │ └── RequiredPropertyValidationRule.java │ │ └── visitors │ │ ├── CompositeAllNodeVisitor.java │ │ ├── ConsumesProducesFinder.java │ │ ├── DefinitionDetectionVisitor.java │ │ ├── OperationFinder.java │ │ └── PathItemFinder.java ├── resources │ └── specs │ │ ├── README.asciidoc │ │ ├── asyncapi.yaml │ │ ├── asyncapi │ │ ├── asyncapi-2.0.0.md │ │ ├── asyncapi-2.0.yaml │ │ ├── asyncapi-2.1.0.md │ │ ├── asyncapi-2.1.yaml │ │ ├── asyncapi-2.2.0.md │ │ ├── asyncapi-2.2.yaml │ │ ├── asyncapi-2.3.0.md │ │ ├── asyncapi-2.3.yaml │ │ ├── asyncapi-2.4.0.md │ │ ├── asyncapi-2.4.yaml │ │ ├── asyncapi-2.5.0.md │ │ ├── asyncapi-2.5.yaml │ │ ├── asyncapi-2.6.0.md │ │ ├── asyncapi-2.6.yaml │ │ ├── asyncapi-3.0.0.md │ │ └── asyncapi-3.0.yaml │ │ ├── json-schema.yaml │ │ ├── json-schema │ │ ├── json-schema-2019-09.yaml │ │ ├── json-schema-2020-12.yaml │ │ ├── json-schema-draft-4.yaml │ │ ├── json-schema-draft-6.yaml │ │ └── json-schema-draft-7.yaml │ │ ├── openapi.yaml │ │ └── openapi │ │ ├── openapi-2.0.yaml │ │ ├── openapi-3.0.yaml │ │ └── openapi-3.1.yaml └── ts │ ├── index.ts │ ├── jest.config.js │ ├── module │ └── README.md │ ├── package.json │ ├── src │ └── io │ │ └── apicurio │ │ └── datamodels │ │ ├── models │ │ └── util │ │ │ └── JsonUtil.ts │ │ └── util │ │ ├── CommandUtil.ts │ │ ├── LoggerUtil.ts │ │ ├── NodeUtil.ts │ │ ├── RegexUtil.ts │ │ └── ValidationUtil.ts │ ├── tests │ ├── commands.test.ts │ ├── dereference.test.ts │ ├── full-io.test.ts │ ├── paths-io.test.ts │ ├── paths-resolve.test.ts │ ├── transform.test.ts │ ├── util │ │ └── tutils.ts │ └── validation.test.ts │ ├── tsconfig-package.json │ └── webpack.config.js └── test ├── java └── io │ └── apicurio │ └── datamodels │ ├── CreateNodesTest.java │ ├── LibraryTest.java │ ├── cmd │ ├── CommandTest.java │ ├── CommandTestCase.java │ └── CommandTestRunner.java │ ├── io │ ├── ExtraPropertyDetectionVisitor.java │ ├── IoTest.java │ ├── IoTestAllNodeFinder.java │ ├── IoTestCase.java │ └── IoTestRunner.java │ ├── paths │ ├── NodePathIoTest.java │ ├── NodePathIoTestCase.java │ ├── NodePathIoTestRunner.java │ ├── NodePathResolveTest.java │ ├── NodePathResolveTestCase.java │ ├── NodePathResolveTestRunner.java │ └── NodePathUtilTest.java │ ├── refs │ ├── DereferenceTest.java │ ├── DereferenceTestCase.java │ ├── DereferenceTestReferenceResolver.java │ └── DereferenceTestRunner.java │ ├── transform │ ├── TransformTest.java │ ├── TransformTestCase.java │ └── TransformTestRunner.java │ ├── util │ ├── JsonUtilTest.java │ └── RegexUtilTest.java │ └── validation │ ├── ValidationRuleTest.java │ ├── ValidationTest.java │ ├── ValidationTestCase.java │ └── ValidationTestRunner.java └── resources ├── browser-test.html └── fixtures ├── cmd ├── commands │ ├── _common │ │ ├── openapi-2 │ │ │ └── pet-store.json │ │ └── openapi-3 │ │ │ └── simple-3.0.json │ ├── add-channel-item │ │ └── asyncapi-2 │ │ │ ├── add-channel-item-with-conflict.after.json │ │ │ ├── add-channel-item-with-conflict.before.json │ │ │ ├── add-channel-item-with-conflict.commands.json │ │ │ ├── add-channel-item.after.json │ │ │ ├── add-channel-item.before.json │ │ │ └── add-channel-item.commands.json │ ├── add-child-schema │ │ └── openapi-3 │ │ │ ├── add-child-schema.after.json │ │ │ ├── add-child-schema.before.json │ │ │ └── add-child-schema.commands.json │ ├── add-definition │ │ ├── openapi-2 │ │ │ ├── add-definition.after.json │ │ │ ├── add-definition.before.json │ │ │ ├── add-definition.commands.json │ │ │ ├── clone-definition.after.json │ │ │ ├── clone-definition.before.json │ │ │ └── clone-definition.commands.json │ │ └── openapi-3 │ │ │ ├── add-definition.after.json │ │ │ ├── add-definition.before.json │ │ │ ├── add-definition.commands.json │ │ │ ├── clone-definition.after.json │ │ │ ├── clone-definition.before.json │ │ │ └── clone-definition.commands.json │ ├── add-example │ │ └── openapi-3 │ │ │ ├── add-example-exists.after.json │ │ │ ├── add-example-exists.before.json │ │ │ ├── add-example-exists.commands.json │ │ │ ├── add-example-first.after.json │ │ │ ├── add-example-first.before.json │ │ │ ├── add-example-first.commands.json │ │ │ ├── add-example.after.json │ │ │ ├── add-example.before.json │ │ │ └── add-example.commands.json │ ├── add-message-example │ │ └── asyncapi-2 │ │ │ ├── add-message-example-exists.after.json │ │ │ ├── add-message-example-exists.before.json │ │ │ ├── add-message-example-exists.commands.json │ │ │ ├── add-message-example-json.after.json │ │ │ ├── add-message-example-json.before.json │ │ │ ├── add-message-example-json.commands.json │ │ │ ├── add-message-example.after.json │ │ │ ├── add-message-example.before.json │ │ │ └── add-message-example.commands.json │ ├── add-oneof-message │ │ └── asyncapi-2 │ │ │ ├── add-oneof-message.after.json │ │ │ ├── add-oneof-message.before.json │ │ │ └── add-oneof-message.commands.json │ ├── add-parameter-example │ │ └── openapi-3 │ │ │ ├── add-parameter-example-exists.after.json │ │ │ ├── add-parameter-example-exists.before.json │ │ │ ├── add-parameter-example-exists.commands.json │ │ │ ├── add-parameter-example-multi.after.json │ │ │ ├── add-parameter-example-multi.before.json │ │ │ ├── add-parameter-example-multi.commands.json │ │ │ ├── add-parameter-example.after.json │ │ │ ├── add-parameter-example.before.json │ │ │ └── add-parameter-example.commands.json │ ├── add-path-item │ │ ├── openapi-2 │ │ │ ├── add-path-item.after.json │ │ │ ├── add-path-item.before.json │ │ │ ├── add-path-item.commands.json │ │ │ ├── clone-path-item.after.json │ │ │ ├── clone-path-item.before.json │ │ │ └── clone-path-item.commands.json │ │ └── openapi-3 │ │ │ ├── add-path-item.after.json │ │ │ ├── add-path-item.before.json │ │ │ ├── add-path-item.commands.json │ │ │ ├── clone-path-item.after.json │ │ │ ├── clone-path-item.before.json │ │ │ └── clone-path-item.commands.json │ ├── add-response-definition │ │ ├── openapi-2 │ │ │ ├── add-response-definition.after.json │ │ │ ├── add-response-definition.before.json │ │ │ ├── add-response-definition.commands.json │ │ │ ├── clone-response-definition.after.json │ │ │ ├── clone-response-definition.before.json │ │ │ └── clone-response-definition.commands.json │ │ └── openapi-3 │ │ │ ├── add-response-definition.after.json │ │ │ ├── add-response-definition.before.json │ │ │ ├── add-response-definition.commands.json │ │ │ ├── clone-response-definition.after.json │ │ │ ├── clone-response-definition.before.json │ │ │ └── clone-response-definition.commands.json │ ├── add-security-requirement │ │ ├── asyncapi-2 │ │ │ ├── add-security-requirement.after.json │ │ │ ├── add-security-requirement.before.json │ │ │ └── add-security-requirement.commands.json │ │ ├── openapi-2 │ │ │ ├── add-security-requirement.after.json │ │ │ ├── add-security-requirement.before.json │ │ │ └── add-security-requirement.commands.json │ │ └── openapi-3 │ │ │ ├── add-security-requirement-doc2.after.json │ │ │ ├── add-security-requirement-doc2.before.json │ │ │ ├── add-security-requirement-doc2.commands.json │ │ │ ├── add-security-requirement-op.after.json │ │ │ ├── add-security-requirement-op.before.json │ │ │ ├── add-security-requirement-op.commands.json │ │ │ ├── add-security-requirement.after.json │ │ │ ├── add-security-requirement.before.json │ │ │ └── add-security-requirement.commands.json │ ├── aggregate │ │ └── openapi-3 │ │ │ ├── aggregate-ordering.after.json │ │ │ ├── aggregate-ordering.before.json │ │ │ ├── aggregate-ordering.commands.json │ │ │ ├── aggregate.after.json │ │ │ ├── aggregate.before.json │ │ │ └── aggregate.commands.json │ ├── change-contact-info │ │ ├── openapi-2 │ │ │ ├── add-contact-info.after.json │ │ │ ├── add-contact-info.before.json │ │ │ ├── add-contact-info.commands.json │ │ │ ├── update-contact-info.after.json │ │ │ ├── update-contact-info.before.json │ │ │ └── update-contact-info.commands.json │ │ └── openapi-3 │ │ │ ├── add-contact-info.after.json │ │ │ ├── add-contact-info.before.json │ │ │ ├── add-contact-info.commands.json │ │ │ ├── update-contact-info.after.json │ │ │ ├── update-contact-info.before.json │ │ │ └── update-contact-info.commands.json │ ├── change-description │ │ ├── openapi-2 │ │ │ ├── add-description.after.json │ │ │ ├── add-description.before.json │ │ │ ├── add-description.commands.json │ │ │ ├── change-description.after.json │ │ │ ├── change-description.before.json │ │ │ └── change-description.commands.json │ │ └── openapi-3 │ │ │ ├── add-description.after.json │ │ │ ├── add-description.before.json │ │ │ ├── add-description.commands.json │ │ │ ├── change-description.after.json │ │ │ ├── change-description.before.json │ │ │ └── change-description.commands.json │ ├── change-header-type │ │ └── openapi-3 │ │ │ ├── change-header-type-response.after.json │ │ │ ├── change-header-type-response.before.json │ │ │ └── change-header-type-response.commands.json │ ├── change-header │ │ └── openapi-3 │ │ │ ├── change-header-response.after.json │ │ │ ├── change-header-response.before.json │ │ │ └── change-header-response.commands.json │ ├── change-headers-ref │ │ └── asyncapi-2 │ │ │ ├── change-headers-ref-invalid-msg.after.json │ │ │ ├── change-headers-ref-invalid-msg.before.json │ │ │ ├── change-headers-ref-invalid-msg.commands.json │ │ │ ├── change-headers-ref-invalid.after.json │ │ │ ├── change-headers-ref-invalid.before.json │ │ │ ├── change-headers-ref-invalid.commands.json │ │ │ ├── change-headers-ref-msg.after.json │ │ │ ├── change-headers-ref-msg.before.json │ │ │ ├── change-headers-ref-msg.commands.json │ │ │ ├── change-headers-ref.after.json │ │ │ ├── change-headers-ref.before.json │ │ │ └── change-headers-ref.commands.json │ ├── change-license │ │ ├── openapi-2 │ │ │ ├── add-license.after.json │ │ │ ├── add-license.before.json │ │ │ ├── add-license.commands.json │ │ │ ├── change-license.after.json │ │ │ ├── change-license.before.json │ │ │ └── change-license.commands.json │ │ └── openapi-3 │ │ │ ├── add-license.after.json │ │ │ ├── add-license.before.json │ │ │ ├── add-license.commands.json │ │ │ ├── change-license.after.json │ │ │ ├── change-license.before.json │ │ │ └── change-license.commands.json │ ├── change-media-type-type │ │ └── openapi-3 │ │ │ ├── change-media-type-type-enum.after.json │ │ │ ├── change-media-type-type-enum.before.json │ │ │ ├── change-media-type-type-enum.commands.json │ │ │ ├── change-media-type-type-response.after.json │ │ │ ├── change-media-type-type-response.before.json │ │ │ └── change-media-type-type-response.commands.json │ ├── change-parameter-type │ │ ├── openapi-2 │ │ │ ├── add-parameter-type.after.json │ │ │ ├── add-parameter-type.before.json │ │ │ ├── add-parameter-type.commands.json │ │ │ ├── change-parameter-definition-type.after.json │ │ │ ├── change-parameter-definition-type.before.json │ │ │ ├── change-parameter-definition-type.commands.json │ │ │ ├── change-parameter-type-enum.after.json │ │ │ ├── change-parameter-type-enum.before.json │ │ │ ├── change-parameter-type-enum.commands.json │ │ │ ├── change-parameter-type-required.after.json │ │ │ ├── change-parameter-type-required.before.json │ │ │ ├── change-parameter-type-required.commands.json │ │ │ ├── change-parameter-type.after.json │ │ │ ├── change-parameter-type.before.json │ │ │ └── change-parameter-type.commands.json │ │ └── openapi-3 │ │ │ ├── add-parameter-type.after.json │ │ │ ├── add-parameter-type.before.json │ │ │ ├── add-parameter-type.commands.json │ │ │ ├── change-parameter-definition-type.after.json │ │ │ ├── change-parameter-definition-type.before.json │ │ │ ├── change-parameter-definition-type.commands.json │ │ │ ├── change-parameter-type-enum.after.json │ │ │ ├── change-parameter-type-enum.before.json │ │ │ ├── change-parameter-type-enum.commands.json │ │ │ ├── change-parameter-type-required.after.json │ │ │ ├── change-parameter-type-required.before.json │ │ │ ├── change-parameter-type-required.commands.json │ │ │ ├── change-parameter-type.after.json │ │ │ ├── change-parameter-type.before.json │ │ │ └── change-parameter-type.commands.json │ ├── change-payload-ref │ │ └── asyncapi-2 │ │ │ ├── change-payload-ref-msg.after.json │ │ │ ├── change-payload-ref-msg.before.json │ │ │ ├── change-payload-ref-msg.commands.json │ │ │ ├── change-payload-ref.after.json │ │ │ ├── change-payload-ref.before.json │ │ │ └── change-payload-ref.commands.json │ ├── change-property-type │ │ ├── asyncapi-2 │ │ │ ├── change-property-type-enum.after.json │ │ │ ├── change-property-type-enum.before.json │ │ │ ├── change-property-type-enum.commands.json │ │ │ ├── change-property-type-required-empty.after.json │ │ │ ├── change-property-type-required-empty.before.json │ │ │ ├── change-property-type-required-empty.commands.json │ │ │ ├── change-property-type-required.after.json │ │ │ ├── change-property-type-required.before.json │ │ │ ├── change-property-type-required.commands.json │ │ │ ├── change-property-type.after.json │ │ │ ├── change-property-type.before.json │ │ │ └── change-property-type.commands.json │ │ ├── openapi-2 │ │ │ ├── change-property-type-enum.after.json │ │ │ ├── change-property-type-enum.before.json │ │ │ ├── change-property-type-enum.commands.json │ │ │ ├── change-property-type-required-empty.after.json │ │ │ ├── change-property-type-required-empty.before.json │ │ │ ├── change-property-type-required-empty.commands.json │ │ │ ├── change-property-type-required.after.json │ │ │ ├── change-property-type-required.before.json │ │ │ ├── change-property-type-required.commands.json │ │ │ ├── change-property-type.after.json │ │ │ ├── change-property-type.before.json │ │ │ └── change-property-type.commands.json │ │ └── openapi-3 │ │ │ ├── change-property-type-enum.after.json │ │ │ ├── change-property-type-enum.before.json │ │ │ ├── change-property-type-enum.commands.json │ │ │ ├── change-property-type-required-empty.after.json │ │ │ ├── change-property-type-required-empty.before.json │ │ │ ├── change-property-type-required-empty.commands.json │ │ │ ├── change-property-type-required.after.json │ │ │ ├── change-property-type-required.before.json │ │ │ ├── change-property-type-required.commands.json │ │ │ ├── change-property-type.after.json │ │ │ ├── change-property-type.before.json │ │ │ └── change-property-type.commands.json │ ├── change-property │ │ ├── asyncapi-2 │ │ │ ├── change-ref-messages.after.json │ │ │ ├── change-ref-messages.before.json │ │ │ └── change-ref-messages.commands.json │ │ ├── openapi-2 │ │ │ ├── add-property.after.json │ │ │ ├── add-property.before.json │ │ │ ├── add-property.commands.json │ │ │ ├── change-property.after.json │ │ │ ├── change-property.before.json │ │ │ └── change-property.commands.json │ │ └── openapi-3 │ │ │ ├── add-property.after.json │ │ │ ├── add-property.before.json │ │ │ ├── add-property.commands.json │ │ │ ├── change-property.after.json │ │ │ ├── change-property.before.json │ │ │ └── change-property.commands.json │ ├── change-response-type │ │ └── openapi-2 │ │ │ ├── add-response-type.after.json │ │ │ ├── add-response-type.before.json │ │ │ ├── add-response-type.commands.json │ │ │ ├── change-response-definition-type.after.json │ │ │ ├── change-response-definition-type.before.json │ │ │ ├── change-response-definition-type.commands.json │ │ │ ├── change-response-type-enum.after.json │ │ │ ├── change-response-type-enum.before.json │ │ │ ├── change-response-type-enum.commands.json │ │ │ ├── change-response-type.after.json │ │ │ ├── change-response-type.before.json │ │ │ └── change-response-type.commands.json │ ├── change-schema-inheritance │ │ └── openapi-3 │ │ │ ├── anyOf-to-allOf.after.json │ │ │ ├── anyOf-to-allOf.before.json │ │ │ ├── anyOf-to-allOf.commands.json │ │ │ ├── anyOf-to-none.after.json │ │ │ ├── anyOf-to-none.before.json │ │ │ ├── anyOf-to-none.commands.json │ │ │ ├── none-to-anyOf.after.json │ │ │ ├── none-to-anyOf.before.json │ │ │ └── none-to-anyOf.commands.json │ ├── change-schema-type │ │ ├── openapi-2 │ │ │ ├── change-schema-type-enum.after.json │ │ │ ├── change-schema-type-enum.before.json │ │ │ ├── change-schema-type-enum.commands.json │ │ │ ├── change-schema-type.after.json │ │ │ ├── change-schema-type.before.json │ │ │ └── change-schema-type.commands.json │ │ └── openapi-3 │ │ │ ├── change-schema-type-enum.after.json │ │ │ ├── change-schema-type-enum.before.json │ │ │ ├── change-schema-type-enum.commands.json │ │ │ ├── change-schema-type.after.json │ │ │ ├── change-schema-type.before.json │ │ │ └── change-schema-type.commands.json │ ├── change-security-scheme │ │ ├── asyncapi-2 │ │ │ ├── change-security-scheme.after.json │ │ │ ├── change-security-scheme.before.json │ │ │ └── change-security-scheme.commands.json │ │ ├── openapi-2 │ │ │ ├── change-security-scheme.after.json │ │ │ ├── change-security-scheme.before.json │ │ │ └── change-security-scheme.commands.json │ │ └── openapi-3 │ │ │ ├── change-security-scheme.after.json │ │ │ ├── change-security-scheme.before.json │ │ │ └── change-security-scheme.commands.json │ ├── change-server │ │ ├── asyncapi-2 │ │ │ ├── change-server.after.json │ │ │ ├── change-server.before.json │ │ │ └── change-server.commands.json │ │ └── openapi-3 │ │ │ ├── change-server-document.after.json │ │ │ ├── change-server-document.before.json │ │ │ ├── change-server-document.commands.json │ │ │ ├── change-server-operation.after.json │ │ │ ├── change-server-operation.before.json │ │ │ ├── change-server-operation.commands.json │ │ │ ├── change-server-pathItem.after.json │ │ │ ├── change-server-pathItem.before.json │ │ │ └── change-server-pathItem.commands.json │ ├── change-title │ │ ├── openapi-2 │ │ │ ├── add-title.after.json │ │ │ ├── add-title.before.json │ │ │ ├── add-title.commands.json │ │ │ ├── change-title.after.json │ │ │ ├── change-title.before.json │ │ │ └── change-title.commands.json │ │ └── openapi-3 │ │ │ ├── add-title.after.json │ │ │ ├── add-title.before.json │ │ │ ├── add-title.commands.json │ │ │ ├── change-title.after.json │ │ │ ├── change-title.before.json │ │ │ └── change-title.commands.json │ ├── change-version │ │ ├── openapi-2 │ │ │ ├── add-version.after.json │ │ │ ├── add-version.before.json │ │ │ ├── add-version.commands.json │ │ │ ├── change-version.after.json │ │ │ ├── change-version.before.json │ │ │ └── change-version.commands.json │ │ └── openapi-3 │ │ │ ├── add-version.after.json │ │ │ ├── add-version.before.json │ │ │ ├── add-version.commands.json │ │ │ ├── change-version.after.json │ │ │ ├── change-version.before.json │ │ │ └── change-version.commands.json │ ├── delete-all-child-schemas │ │ └── openapi-3 │ │ │ ├── delete-all-schemas.after.json │ │ │ ├── delete-all-schemas.before.json │ │ │ └── delete-all-schemas.commands.json │ ├── delete-all-examples │ │ └── openapi-3 │ │ │ ├── delete-all-examples.after.json │ │ │ ├── delete-all-examples.before.json │ │ │ └── delete-all-examples.commands.json │ ├── delete-all-extensions │ │ └── openapi-3 │ │ │ ├── delete-all-extensions.after.json │ │ │ ├── delete-all-extensions.before.json │ │ │ └── delete-all-extensions.commands.json │ ├── delete-all-headers │ │ └── openapi-3 │ │ │ ├── delete-all-headers-response.after.json │ │ │ ├── delete-all-headers-response.before.json │ │ │ └── delete-all-headers-response.commands.json │ ├── delete-all-message-examples │ │ └── asyncapi-2 │ │ │ ├── delete-all-message-examples.after.json │ │ │ ├── delete-all-message-examples.before.json │ │ │ └── delete-all-message-examples.commands.json │ ├── delete-all-operations │ │ ├── asyncapi-2 │ │ │ ├── delete-all-operations-single-operation.after.json │ │ │ ├── delete-all-operations-single-operation.before.json │ │ │ ├── delete-all-operations-single-operation.commands.json │ │ │ ├── delete-all-operations.after.json │ │ │ ├── delete-all-operations.before.json │ │ │ └── delete-all-operations.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-all-operations.after.json │ │ │ ├── delete-all-operations.before.json │ │ │ └── delete-all-operations.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-operations.after.json │ │ │ ├── delete-all-operations.before.json │ │ │ └── delete-all-operations.commands.json │ ├── delete-all-parameter-examples │ │ └── openapi-3 │ │ │ ├── delete-all-parameter-examples.after.json │ │ │ ├── delete-all-parameter-examples.before.json │ │ │ └── delete-all-parameter-examples.commands.json │ ├── delete-all-parameters │ │ ├── openapi-2 │ │ │ ├── delete-all-parameters.after.json │ │ │ ├── delete-all-parameters.before.json │ │ │ └── delete-all-parameters.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-parameters.after.json │ │ │ ├── delete-all-parameters.before.json │ │ │ └── delete-all-parameters.commands.json │ ├── delete-all-properties │ │ ├── asyncapi-2 │ │ │ ├── delete-all-properties.after.json │ │ │ ├── delete-all-properties.before.json │ │ │ └── delete-all-properties.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-all-properties.after.json │ │ │ ├── delete-all-properties.before.json │ │ │ └── delete-all-properties.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-properties.after.json │ │ │ ├── delete-all-properties.before.json │ │ │ └── delete-all-properties.commands.json │ ├── delete-all-responses │ │ ├── openapi-2 │ │ │ ├── delete-all-responses.after.json │ │ │ ├── delete-all-responses.before.json │ │ │ └── delete-all-responses.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-responses.after.json │ │ │ ├── delete-all-responses.before.json │ │ │ └── delete-all-responses.commands.json │ ├── delete-all-security-requirements │ │ ├── asyncapi-2 │ │ │ ├── delete-all-security-requirements.after.json │ │ │ ├── delete-all-security-requirements.before.json │ │ │ └── delete-all-security-requirements.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-all-security-requirements.after.json │ │ │ ├── delete-all-security-requirements.before.json │ │ │ └── delete-all-security-requirements.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-security-requirements-op.after.json │ │ │ ├── delete-all-security-requirements-op.before.json │ │ │ ├── delete-all-security-requirements-op.commands.json │ │ │ ├── delete-all-security-requirements.after.json │ │ │ ├── delete-all-security-requirements.before.json │ │ │ └── delete-all-security-requirements.commands.json │ ├── delete-all-security-schemes │ │ ├── asyncapi-2 │ │ │ ├── delete-all-security-schemes.after.json │ │ │ ├── delete-all-security-schemes.before.json │ │ │ └── delete-all-security-schemes.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-all-security-schemes.after.json │ │ │ ├── delete-all-security-schemes.before.json │ │ │ └── delete-all-security-schemes.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-security-schemes.after.json │ │ │ ├── delete-all-security-schemes.before.json │ │ │ └── delete-all-security-schemes.commands.json │ ├── delete-all-servers │ │ ├── asyncapi-2 │ │ │ ├── delete-all-servers.after.json │ │ │ ├── delete-all-servers.before.json │ │ │ └── delete-all-servers.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-servers-document.after.json │ │ │ ├── delete-all-servers-document.before.json │ │ │ ├── delete-all-servers-document.commands.json │ │ │ ├── delete-all-servers-operation.after.json │ │ │ ├── delete-all-servers-operation.before.json │ │ │ ├── delete-all-servers-operation.commands.json │ │ │ ├── delete-all-servers-pathItem.after.json │ │ │ ├── delete-all-servers-pathItem.before.json │ │ │ └── delete-all-servers-pathItem.commands.json │ ├── delete-all-tags │ │ ├── asyncapi-2 │ │ │ ├── delete-all-tags-msg.after.json │ │ │ ├── delete-all-tags-msg.before.json │ │ │ ├── delete-all-tags-msg.commands.json │ │ │ ├── delete-all-tags-op.after.json │ │ │ ├── delete-all-tags-op.before.json │ │ │ └── delete-all-tags-op.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-all-tags.after.json │ │ │ ├── delete-all-tags.before.json │ │ │ └── delete-all-tags.commands.json │ │ └── openapi-3 │ │ │ ├── delete-all-tags.after.json │ │ │ ├── delete-all-tags.before.json │ │ │ └── delete-all-tags.commands.json │ ├── delete-channel │ │ └── asyncapi-2 │ │ │ ├── delete-channel.after.json │ │ │ ├── delete-channel.before.json │ │ │ └── delete-channel.commands.json │ ├── delete-child-schema │ │ └── openapi-3 │ │ │ ├── delete-child-schema.after.json │ │ │ ├── delete-child-schema.before.json │ │ │ └── delete-child-schema.commands.json │ ├── delete-contact │ │ ├── openapi-2 │ │ │ ├── delete-contact.after.json │ │ │ ├── delete-contact.before.json │ │ │ └── delete-contact.commands.json │ │ └── openapi-3 │ │ │ ├── delete-contact-na.after.json │ │ │ ├── delete-contact-na.before.json │ │ │ ├── delete-contact-na.commands.json │ │ │ ├── delete-contact.after.json │ │ │ ├── delete-contact.before.json │ │ │ └── delete-contact.commands.json │ ├── delete-example │ │ ├── openapi-2 │ │ │ ├── delete-example.after.json │ │ │ ├── delete-example.before.json │ │ │ └── delete-example.commands.json │ │ └── openapi-3 │ │ │ ├── delete-example-multiple.after.json │ │ │ ├── delete-example-multiple.before.json │ │ │ ├── delete-example-multiple.commands.json │ │ │ ├── delete-example.after.json │ │ │ ├── delete-example.before.json │ │ │ └── delete-example.commands.json │ ├── delete-extension │ │ ├── openapi-2 │ │ │ ├── delete-extension.after.json │ │ │ ├── delete-extension.before.json │ │ │ └── delete-extension.commands.json │ │ └── openapi-3 │ │ │ ├── delete-extension.after.json │ │ │ ├── delete-extension.before.json │ │ │ └── delete-extension.commands.json │ ├── delete-header.openapi-3 │ │ ├── delete-header-response-multiple.after.json │ │ ├── delete-header-response-multiple.before.json │ │ ├── delete-header-response-multiple.commands.json │ │ ├── delete-header-response.after.json │ │ ├── delete-header-response.before.json │ │ └── delete-header-response.commands.json │ ├── delete-license │ │ ├── openapi-2 │ │ │ ├── delete-license.after.json │ │ │ ├── delete-license.before.json │ │ │ └── delete-license.commands.json │ │ └── openapi-3 │ │ │ ├── delete-license.after.json │ │ │ ├── delete-license.before.json │ │ │ └── delete-license.commands.json │ ├── delete-media-type │ │ └── openapi-3 │ │ │ ├── delete-media-type-requestBody.after.json │ │ │ ├── delete-media-type-requestBody.before.json │ │ │ ├── delete-media-type-requestBody.commands.json │ │ │ ├── delete-media-type-response.after.json │ │ │ ├── delete-media-type-response.before.json │ │ │ └── delete-media-type-response.commands.json │ ├── delete-message-definition │ │ └── asyncapi-2 │ │ │ ├── delete-message-definition.after.json │ │ │ ├── delete-message-definition.before.json │ │ │ └── delete-message-definition.commands.json │ ├── delete-message-example │ │ └── asyncapi-2 │ │ │ ├── delete-message-example-exists.after.json │ │ │ ├── delete-message-example-exists.before.json │ │ │ ├── delete-message-example-exists.commands.json │ │ │ ├── delete-message-example-json.after.json │ │ │ ├── delete-message-example-json.before.json │ │ │ ├── delete-message-example-json.commands.json │ │ │ ├── delete-message-example.after.json │ │ │ ├── delete-message-example.before.json │ │ │ └── delete-message-example.commands.json │ ├── delete-messagetrait-definition │ │ └── asyncapi-2 │ │ │ ├── delete-messagetrait-definition-multiple.after.json │ │ │ ├── delete-messagetrait-definition-multiple.before.json │ │ │ ├── delete-messagetrait-definition-multiple.commands.json │ │ │ ├── delete-messagetrait-definition.after.json │ │ │ ├── delete-messagetrait-definition.before.json │ │ │ └── delete-messagetrait-definition.commands.json │ ├── delete-oneof-message │ │ └── asyncapi-2 │ │ │ ├── delete-oneof-message.after.json │ │ │ ├── delete-oneof-message.before.json │ │ │ └── delete-oneof-message.commands.json │ ├── delete-operation │ │ ├── asyncapi-2 │ │ │ ├── delete-operation.after.json │ │ │ ├── delete-operation.before.json │ │ │ └── delete-operation.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-operation.after.json │ │ │ ├── delete-operation.before.json │ │ │ └── delete-operation.commands.json │ │ └── openapi-3 │ │ │ ├── delete-operation.after.json │ │ │ ├── delete-operation.before.json │ │ │ └── delete-operation.commands.json │ ├── delete-operationtrait-definition │ │ └── asyncapi-2 │ │ │ ├── delete-operationtrait-definition-multiple.after.json │ │ │ ├── delete-operationtrait-definition-multiple.before.json │ │ │ ├── delete-operationtrait-definition-multiple.commands.json │ │ │ ├── delete-operationtrait-definition.after.json │ │ │ ├── delete-operationtrait-definition.before.json │ │ │ └── delete-operationtrait-definition.commands.json │ ├── delete-parameter-example │ │ └── openapi-3 │ │ │ ├── delete-parameter-example.after.json │ │ │ ├── delete-parameter-example.before.json │ │ │ └── delete-parameter-example.commands.json │ ├── delete-parameter │ │ ├── openapi-2 │ │ │ ├── delete-parameter.after.json │ │ │ ├── delete-parameter.before.json │ │ │ └── delete-parameter.commands.json │ │ └── openapi-3 │ │ │ ├── delete-parameter.after.json │ │ │ ├── delete-parameter.before.json │ │ │ └── delete-parameter.commands.json │ ├── delete-path │ │ ├── openapi-2 │ │ │ ├── delete-path.after.json │ │ │ ├── delete-path.before.json │ │ │ └── delete-path.commands.json │ │ └── openapi-3 │ │ │ ├── delete-path.after.json │ │ │ ├── delete-path.before.json │ │ │ └── delete-path.commands.json │ ├── delete-property │ │ ├── asyncapi-2 │ │ │ ├── delete-property-required-multiple.after.json │ │ │ ├── delete-property-required-multiple.before.json │ │ │ ├── delete-property-required-multiple.commands.json │ │ │ ├── delete-property-required.after.json │ │ │ ├── delete-property-required.before.json │ │ │ ├── delete-property-required.commands.json │ │ │ ├── delete-property.after.json │ │ │ ├── delete-property.before.json │ │ │ └── delete-property.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-property-required.after.json │ │ │ ├── delete-property-required.before.json │ │ │ ├── delete-property-required.commands.json │ │ │ ├── delete-property.after.json │ │ │ ├── delete-property.before.json │ │ │ └── delete-property.commands.json │ │ └── openapi-3 │ │ │ ├── delete-property-required.after.json │ │ │ ├── delete-property-required.before.json │ │ │ ├── delete-property-required.commands.json │ │ │ ├── delete-property.after.json │ │ │ ├── delete-property.before.json │ │ │ └── delete-property.commands.json │ ├── delete-request-body │ │ └── openapi-3 │ │ │ ├── delete-request-body.after.json │ │ │ ├── delete-request-body.before.json │ │ │ └── delete-request-body.commands.json │ ├── delete-response-definition │ │ ├── openapi-2 │ │ │ ├── delete-response-definition.after.json │ │ │ ├── delete-response-definition.before.json │ │ │ └── delete-response-definition.commands.json │ │ └── openapi-3 │ │ │ ├── delete-response-definition.after.json │ │ │ ├── delete-response-definition.before.json │ │ │ └── delete-response-definition.commands.json │ ├── delete-response │ │ ├── openapi-2 │ │ │ ├── delete-response.after.json │ │ │ ├── delete-response.before.json │ │ │ └── delete-response.commands.json │ │ └── openapi-3 │ │ │ ├── delete-response.after.json │ │ │ ├── delete-response.before.json │ │ │ └── delete-response.commands.json │ ├── delete-schema-definition │ │ ├── asyncapi-2 │ │ │ ├── delete-schema-definition.after.json │ │ │ ├── delete-schema-definition.before.json │ │ │ └── delete-schema-definition.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-schema-definition.after.json │ │ │ ├── delete-schema-definition.before.json │ │ │ └── delete-schema-definition.commands.json │ │ └── openapi-3 │ │ │ ├── delete-schema-definition.after.json │ │ │ ├── delete-schema-definition.before.json │ │ │ └── delete-schema-definition.commands.json │ ├── delete-security-requirement │ │ ├── asyncapi-2 │ │ │ ├── delete-security-requirement-unmatched.after.json │ │ │ ├── delete-security-requirement-unmatched.before.json │ │ │ ├── delete-security-requirement-unmatched.commands.json │ │ │ ├── delete-security-requirement.after.json │ │ │ ├── delete-security-requirement.before.json │ │ │ └── delete-security-requirement.commands.json │ │ └── openapi-3 │ │ │ ├── delete-security-requirement-doc2.after.json │ │ │ ├── delete-security-requirement-doc2.before.json │ │ │ ├── delete-security-requirement-doc2.commands.json │ │ │ ├── delete-security-requirement-op.after.json │ │ │ ├── delete-security-requirement-op.before.json │ │ │ ├── delete-security-requirement-op.commands.json │ │ │ ├── delete-security-requirement.after.json │ │ │ ├── delete-security-requirement.before.json │ │ │ └── delete-security-requirement.commands.json │ ├── delete-security-scheme │ │ ├── asyncapi-2 │ │ │ ├── delete-security-scheme.after.json │ │ │ ├── delete-security-scheme.before.json │ │ │ └── delete-security-scheme.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-security-scheme.after.json │ │ │ ├── delete-security-scheme.before.json │ │ │ └── delete-security-scheme.commands.json │ │ └── openapi-3 │ │ │ ├── delete-security-scheme.after.json │ │ │ ├── delete-security-scheme.before.json │ │ │ └── delete-security-scheme.commands.json │ ├── delete-server │ │ ├── asyncapi-2 │ │ │ ├── delete-server.after.json │ │ │ ├── delete-server.before.json │ │ │ └── delete-server.commands.json │ │ └── openapi-3 │ │ │ ├── delete-server-document.after.json │ │ │ ├── delete-server-document.before.json │ │ │ ├── delete-server-document.commands.json │ │ │ ├── delete-server-operation.after.json │ │ │ ├── delete-server-operation.before.json │ │ │ ├── delete-server-operation.commands.json │ │ │ ├── delete-server-pathItem.after.json │ │ │ ├── delete-server-pathItem.before.json │ │ │ └── delete-server-pathItem.commands.json │ ├── delete-tag │ │ ├── asyncapi-2 │ │ │ ├── delete-tag-msg.after.json │ │ │ ├── delete-tag-msg.before.json │ │ │ ├── delete-tag-msg.commands.json │ │ │ ├── delete-tag-op.after.json │ │ │ ├── delete-tag-op.before.json │ │ │ └── delete-tag-op.commands.json │ │ ├── openapi-2 │ │ │ ├── delete-tag.after.json │ │ │ ├── delete-tag.before.json │ │ │ └── delete-tag.commands.json │ │ └── openapi-3 │ │ │ ├── delete-tag.after.json │ │ │ ├── delete-tag.before.json │ │ │ └── delete-tag.commands.json │ ├── new-channel │ │ └── asyncapi-2 │ │ │ ├── new-channel.after.json │ │ │ ├── new-channel.before.json │ │ │ └── new-channel.commands.json │ ├── new-extension │ │ └── openapi-3 │ │ │ ├── new-extension-object.after.json │ │ │ ├── new-extension-object.before.json │ │ │ ├── new-extension-object.commands.json │ │ │ ├── new-extension.after.json │ │ │ ├── new-extension.before.json │ │ │ └── new-extension.commands.json │ ├── new-header.openapi-3 │ │ ├── new-header-response.after.json │ │ ├── new-header-response.before.json │ │ └── new-header-response.commands.json │ ├── new-media-type │ │ └── openapi-3 │ │ │ ├── new-media-type-parameter.after.json │ │ │ ├── new-media-type-parameter.before.json │ │ │ ├── new-media-type-parameter.commands.json │ │ │ ├── new-media-type-requestBody.after.json │ │ │ ├── new-media-type-requestBody.before.json │ │ │ ├── new-media-type-requestBody.commands.json │ │ │ ├── new-media-type-response.after.json │ │ │ ├── new-media-type-response.before.json │ │ │ └── new-media-type-response.commands.json │ ├── new-message-definition │ │ └── asyncapi-2 │ │ │ ├── new-message-definition-with-description.after.json │ │ │ ├── new-message-definition-with-description.before.json │ │ │ ├── new-message-definition-with-description.commands.json │ │ │ ├── new-message-definition.after.json │ │ │ ├── new-message-definition.before.json │ │ │ └── new-message-definition.commands.json │ ├── new-messagetrait-definition │ │ └── asyncapi-2 │ │ │ ├── new-messagetrait-definition-with-description.after.json │ │ │ ├── new-messagetrait-definition-with-description.before.json │ │ │ ├── new-messagetrait-definition-with-description.commands.json │ │ │ ├── new-messagetrait-definition.after.json │ │ │ ├── new-messagetrait-definition.before.json │ │ │ └── new-messagetrait-definition.commands.json │ ├── new-operation │ │ ├── asyncapi-2 │ │ │ ├── new-operation.after.json │ │ │ ├── new-operation.before.json │ │ │ └── new-operation.commands.json │ │ ├── openapi-2 │ │ │ ├── new-operation.after.json │ │ │ ├── new-operation.before.json │ │ │ └── new-operation.commands.json │ │ └── openapi-3 │ │ │ ├── new-operation.after.json │ │ │ ├── new-operation.before.json │ │ │ └── new-operation.commands.json │ ├── new-operationtrait-definition │ │ └── asyncapi-2 │ │ │ ├── new-operationtrait-definition-with-description.after.json │ │ │ ├── new-operationtrait-definition-with-description.before.json │ │ │ ├── new-operationtrait-definition-with-description.commands.json │ │ │ ├── new-operationtrait-definition.after.json │ │ │ ├── new-operationtrait-definition.before.json │ │ │ └── new-operationtrait-definition.commands.json │ ├── new-param │ │ ├── openapi-2 │ │ │ ├── new-param-both.after.json │ │ │ ├── new-param-both.before.json │ │ │ ├── new-param-both.commands.json │ │ │ ├── new-param.after.json │ │ │ ├── new-param.before.json │ │ │ └── new-param.commands.json │ │ └── openapi-3 │ │ │ ├── new-param-both.after.json │ │ │ ├── new-param-both.before.json │ │ │ ├── new-param-both.commands.json │ │ │ ├── new-param-description.after.json │ │ │ ├── new-param-description.before.json │ │ │ ├── new-param-description.commands.json │ │ │ ├── new-param-type.after.json │ │ │ ├── new-param-type.before.json │ │ │ ├── new-param-type.commands.json │ │ │ ├── new-param.after.json │ │ │ ├── new-param.before.json │ │ │ ├── new-param.commands.json │ │ │ ├── override-param.after.json │ │ │ ├── override-param.before.json │ │ │ └── override-param.commands.json │ ├── new-path │ │ ├── openapi-2 │ │ │ ├── new-path.after.json │ │ │ ├── new-path.before.json │ │ │ └── new-path.commands.json │ │ └── openapi-3 │ │ │ ├── new-path.after.json │ │ │ ├── new-path.before.json │ │ │ └── new-path.commands.json │ ├── new-request-body │ │ ├── openapi-2 │ │ │ ├── new-request-body.after.json │ │ │ ├── new-request-body.before.json │ │ │ └── new-request-body.commands.json │ │ └── openapi-3 │ │ │ ├── new-request-body.after.json │ │ │ ├── new-request-body.before.json │ │ │ └── new-request-body.commands.json │ ├── new-response-definition │ │ ├── openapi-2 │ │ │ ├── new-response-definition-with-description.after.json │ │ │ ├── new-response-definition-with-description.before.json │ │ │ ├── new-response-definition-with-description.commands.json │ │ │ ├── new-response-definition.after.json │ │ │ ├── new-response-definition.before.json │ │ │ └── new-response-definition.commands.json │ │ └── openapi-3 │ │ │ ├── new-response-definition-with-description.after.json │ │ │ ├── new-response-definition-with-description.before.json │ │ │ ├── new-response-definition-with-description.commands.json │ │ │ ├── new-response-definition.after.json │ │ │ ├── new-response-definition.before.json │ │ │ └── new-response-definition.commands.json │ ├── new-response │ │ ├── openapi-2 │ │ │ ├── clone-response.after.json │ │ │ ├── clone-response.before.json │ │ │ ├── clone-response.commands.json │ │ │ ├── new-response.after.json │ │ │ ├── new-response.before.json │ │ │ └── new-response.commands.json │ │ └── openapi-3 │ │ │ ├── clone-response.after.json │ │ │ ├── clone-response.before.json │ │ │ ├── clone-response.commands.json │ │ │ ├── new-response-ref.after.json │ │ │ ├── new-response-ref.before.json │ │ │ ├── new-response-ref.commands.json │ │ │ ├── new-response.after.json │ │ │ ├── new-response.before.json │ │ │ └── new-response.commands.json │ ├── new-schema-definition │ │ ├── asyncapi-2 │ │ │ ├── new-schema-definition-with-description.after.json │ │ │ ├── new-schema-definition-with-description.before.json │ │ │ ├── new-schema-definition-with-description.commands.json │ │ │ ├── new-schema-definition-with-example.after.json │ │ │ ├── new-schema-definition-with-example.before.json │ │ │ ├── new-schema-definition-with-example.commands.json │ │ │ ├── new-schema-definition.after.json │ │ │ ├── new-schema-definition.before.json │ │ │ └── new-schema-definition.commands.json │ │ ├── openapi-2 │ │ │ ├── new-schema-definition-with-description.after.json │ │ │ ├── new-schema-definition-with-description.before.json │ │ │ ├── new-schema-definition-with-description.commands.json │ │ │ ├── new-schema-definition-with-example.after.json │ │ │ ├── new-schema-definition-with-example.before.json │ │ │ ├── new-schema-definition-with-example.commands.json │ │ │ ├── new-schema-definition.after.json │ │ │ ├── new-schema-definition.before.json │ │ │ └── new-schema-definition.commands.json │ │ └── openapi-3 │ │ │ ├── new-schema-definition-with-description.after.json │ │ │ ├── new-schema-definition-with-description.before.json │ │ │ ├── new-schema-definition-with-description.commands.json │ │ │ ├── new-schema-definition-with-example.after.json │ │ │ ├── new-schema-definition-with-example.before.json │ │ │ ├── new-schema-definition-with-example.commands.json │ │ │ ├── new-schema-definition.after.json │ │ │ ├── new-schema-definition.before.json │ │ │ └── new-schema-definition.commands.json │ ├── new-schema-property │ │ ├── asyncapi-2 │ │ │ ├── new-schema-property-both.after.json │ │ │ ├── new-schema-property-both.before.json │ │ │ ├── new-schema-property-both.commands.json │ │ │ ├── new-schema-property.after.json │ │ │ ├── new-schema-property.before.json │ │ │ └── new-schema-property.commands.json │ │ ├── openapi-2 │ │ │ ├── new-schema-property-description.after.json │ │ │ ├── new-schema-property-description.before.json │ │ │ ├── new-schema-property-description.commands.json │ │ │ ├── new-schema-property-type.after.json │ │ │ ├── new-schema-property-type.before.json │ │ │ ├── new-schema-property-type.commands.json │ │ │ ├── new-schema-property.after.json │ │ │ ├── new-schema-property.before.json │ │ │ └── new-schema-property.commands.json │ │ └── openapi-3 │ │ │ ├── new-schema-property-both.after.json │ │ │ ├── new-schema-property-both.before.json │ │ │ ├── new-schema-property-both.commands.json │ │ │ ├── new-schema-property.after.json │ │ │ ├── new-schema-property.before.json │ │ │ └── new-schema-property.commands.json │ ├── new-security-scheme │ │ ├── asyncapi-2 │ │ │ ├── new-security-scheme.after.json │ │ │ ├── new-security-scheme.before.json │ │ │ └── new-security-scheme.commands.json │ │ ├── openapi-2 │ │ │ ├── new-security-scheme.after.json │ │ │ ├── new-security-scheme.before.json │ │ │ └── new-security-scheme.commands.json │ │ └── openapi-3 │ │ │ ├── new-security-scheme.after.json │ │ │ ├── new-security-scheme.before.json │ │ │ └── new-security-scheme.commands.json │ ├── new-server │ │ ├── asyncapi-2 │ │ │ ├── new-server-exists.after.json │ │ │ ├── new-server-exists.before.json │ │ │ ├── new-server-exists.commands.json │ │ │ ├── new-server.after.json │ │ │ ├── new-server.before.json │ │ │ └── new-server.commands.json │ │ └── openapi-3 │ │ │ ├── new-server-document-exists.after.json │ │ │ ├── new-server-document-exists.before.json │ │ │ ├── new-server-document-exists.commands.json │ │ │ ├── new-server-document.after.json │ │ │ ├── new-server-document.before.json │ │ │ ├── new-server-document.commands.json │ │ │ ├── new-server-operation.after.json │ │ │ ├── new-server-operation.before.json │ │ │ ├── new-server-operation.commands.json │ │ │ ├── new-server-pathItem.after.json │ │ │ ├── new-server-pathItem.before.json │ │ │ └── new-server-pathItem.commands.json │ ├── new-tag │ │ ├── asyncapi-2 │ │ │ ├── new-tag-msg.after.json │ │ │ ├── new-tag-msg.before.json │ │ │ ├── new-tag-msg.commands.json │ │ │ ├── new-tag-op.after.json │ │ │ ├── new-tag-op.before.json │ │ │ └── new-tag-op.commands.json │ │ ├── openapi-2 │ │ │ ├── new-tag.after.json │ │ │ ├── new-tag.before.json │ │ │ └── new-tag.commands.json │ │ └── openapi-3 │ │ │ ├── new-tag.after.json │ │ │ ├── new-tag.before.json │ │ │ └── new-tag.commands.json │ ├── rename-channel-item │ │ └── asyncapi-2 │ │ │ ├── rename-channel-item-init-params.after.json │ │ │ ├── rename-channel-item-init-params.before.json │ │ │ ├── rename-channel-item-init-params.commands.json │ │ │ ├── rename-channel-item-remove-params.after.json │ │ │ ├── rename-channel-item-remove-params.before.json │ │ │ ├── rename-channel-item-remove-params.commands.json │ │ │ ├── rename-channel-item-remove-some-params.after.json │ │ │ ├── rename-channel-item-remove-some-params.before.json │ │ │ ├── rename-channel-item-remove-some-params.commands.json │ │ │ ├── rename-channel-item-shuffle-params.after.json │ │ │ ├── rename-channel-item-shuffle-params.before.json │ │ │ ├── rename-channel-item-shuffle-params.commands.json │ │ │ ├── rename-channel-item-skip-conflict.after.json │ │ │ ├── rename-channel-item-skip-conflict.before.json │ │ │ ├── rename-channel-item-skip-conflict.commands.json │ │ │ ├── rename-channel-item-with-many-params.after.json │ │ │ ├── rename-channel-item-with-many-params.before.json │ │ │ ├── rename-channel-item-with-many-params.commands.json │ │ │ ├── rename-channel-item-with-params.after.json │ │ │ ├── rename-channel-item-with-params.before.json │ │ │ ├── rename-channel-item-with-params.commands.json │ │ │ ├── rename-channel-item.after.json │ │ │ ├── rename-channel-item.before.json │ │ │ └── rename-channel-item.commands.json │ ├── rename-header │ │ └── openapi-3 │ │ │ ├── rename-header-response.after.json │ │ │ ├── rename-header-response.before.json │ │ │ └── rename-header-response.commands.json │ ├── rename-message-definition │ │ └── asyncapi-2 │ │ │ ├── rename-message-definition.after.json │ │ │ ├── rename-message-definition.before.json │ │ │ └── rename-message-definition.commands.json │ ├── rename-messagetrait-definition │ │ └── asyncapi-2 │ │ │ ├── rename-messagetrait-definition.after.json │ │ │ ├── rename-messagetrait-definition.before.json │ │ │ └── rename-messagetrait-definition.commands.json │ ├── rename-operationtrait-definition │ │ └── asyncapi-2 │ │ │ ├── rename-operationtrait-definition.after.json │ │ │ ├── rename-operationtrait-definition.before.json │ │ │ └── rename-operationtrait-definition.commands.json │ ├── rename-parameter │ │ ├── openapi-2 │ │ │ ├── refactor-operation-parameter.after.json │ │ │ ├── refactor-operation-parameter.before.json │ │ │ ├── refactor-operation-parameter.commands.json │ │ │ ├── refactor-path-parameter.after.json │ │ │ ├── refactor-path-parameter.before.json │ │ │ ├── refactor-path-parameter.commands.json │ │ │ ├── rename-parameter.after.json │ │ │ ├── rename-parameter.before.json │ │ │ └── rename-parameter.commands.json │ │ └── openapi-3 │ │ │ ├── refactor-path-parameter.after.json │ │ │ ├── refactor-path-parameter.before.json │ │ │ ├── refactor-path-parameter.commands.json │ │ │ ├── rename-parameter.after.json │ │ │ ├── rename-parameter.before.json │ │ │ ├── rename-parameter.commands.json │ │ │ └── rename-parameter.privates-commands.json │ ├── rename-path-item │ │ ├── openapi-2 │ │ │ ├── rename-path-item-with-both.after.json │ │ │ ├── rename-path-item-with-both.before.json │ │ │ ├── rename-path-item-with-both.commands.json │ │ │ ├── rename-path-item-with-params.after.json │ │ │ ├── rename-path-item-with-params.before.json │ │ │ ├── rename-path-item-with-params.commands.json │ │ │ ├── rename-path-item-with-subPaths.after.json │ │ │ ├── rename-path-item-with-subPaths.before.json │ │ │ ├── rename-path-item-with-subPaths.commands.json │ │ │ ├── rename-path-item.after.json │ │ │ ├── rename-path-item.before.json │ │ │ └── rename-path-item.commands.json │ │ └── openapi-3 │ │ │ ├── rename-path-item-remove-params.after.json │ │ │ ├── rename-path-item-remove-params.before.json │ │ │ ├── rename-path-item-remove-params.commands.json │ │ │ ├── rename-path-item-with-both.after.json │ │ │ ├── rename-path-item-with-both.before.json │ │ │ ├── rename-path-item-with-both.commands.json │ │ │ ├── rename-path-item-with-params.after.json │ │ │ ├── rename-path-item-with-params.before.json │ │ │ ├── rename-path-item-with-params.commands.json │ │ │ ├── rename-path-item-with-subPaths.after.json │ │ │ ├── rename-path-item-with-subPaths.before.json │ │ │ ├── rename-path-item-with-subPaths.commands.json │ │ │ ├── rename-path-item.after.json │ │ │ ├── rename-path-item.before.json │ │ │ └── rename-path-item.commands.json │ ├── rename-property │ │ ├── openapi-2 │ │ │ ├── rename-property.after.json │ │ │ ├── rename-property.before.json │ │ │ └── rename-property.commands.json │ │ └── openapi-3 │ │ │ ├── rename-property.after.json │ │ │ ├── rename-property.before.json │ │ │ └── rename-property.commands.json │ ├── rename-response-definition │ │ ├── openapi-2 │ │ │ ├── rename-response-definition.after.json │ │ │ ├── rename-response-definition.before.json │ │ │ └── rename-response-definition.commands.json │ │ └── openapi-3 │ │ │ ├── rename-response-definition.after.json │ │ │ ├── rename-response-definition.before.json │ │ │ └── rename-response-definition.commands.json │ ├── rename-schema-definition │ │ ├── asyncapi-2 │ │ │ ├── rename-schema-definition.after.json │ │ │ ├── rename-schema-definition.before.json │ │ │ └── rename-schema-definition.commands.json │ │ ├── openapi-2 │ │ │ ├── rename-schema-definition.after.json │ │ │ ├── rename-schema-definition.before.json │ │ │ └── rename-schema-definition.commands.json │ │ └── openapi-3 │ │ │ ├── rename-schema-definition.after.json │ │ │ ├── rename-schema-definition.before.json │ │ │ └── rename-schema-definition.commands.json │ ├── rename-security-scheme │ │ ├── asyncapi-2 │ │ │ ├── rename-security-scheme.after.json │ │ │ ├── rename-security-scheme.before.json │ │ │ └── rename-security-scheme.commands.json │ │ ├── openapi-2 │ │ │ ├── refactor-security-scheme.after.json │ │ │ ├── refactor-security-scheme.before.json │ │ │ ├── refactor-security-scheme.commands.json │ │ │ ├── rename-security-scheme.after.json │ │ │ ├── rename-security-scheme.before.json │ │ │ └── rename-security-scheme.commands.json │ │ └── openapi-3 │ │ │ ├── rename-security-scheme.after.json │ │ │ ├── rename-security-scheme.before.json │ │ │ └── rename-security-scheme.commands.json │ ├── rename-server │ │ └── asyncapi-2 │ │ │ ├── rename-server-exists.after.json │ │ │ ├── rename-server-exists.before.json │ │ │ ├── rename-server-exists.commands.json │ │ │ ├── rename-server.after.json │ │ │ ├── rename-server.before.json │ │ │ └── rename-server.commands.json │ ├── rename-tag-definition │ │ ├── openapi-2 │ │ │ ├── refactor-tag.after.json │ │ │ ├── refactor-tag.before.json │ │ │ ├── refactor-tag.commands.json │ │ │ ├── rename-tag.after.json │ │ │ ├── rename-tag.before.json │ │ │ └── rename-tag.commands.json │ │ └── openapi-3 │ │ │ ├── refactor-tag.after.json │ │ │ ├── refactor-tag.before.json │ │ │ ├── refactor-tag.commands.json │ │ │ ├── rename-tag.after.json │ │ │ ├── rename-tag.before.json │ │ │ └── rename-tag.commands.json │ ├── replace-channel-item │ │ └── asyncapi-2 │ │ │ ├── replace-channel-item.after.json │ │ │ ├── replace-channel-item.before.json │ │ │ └── replace-channel-item.commands.json │ ├── replace-document │ │ ├── asyncapi-2 │ │ │ ├── replace-document.after.json │ │ │ ├── replace-document.before.json │ │ │ └── replace-document.commands.json │ │ └── openapi-3 │ │ │ ├── replace-document.after.json │ │ │ ├── replace-document.before.json │ │ │ └── replace-document.commands.json │ ├── replace-operation │ │ ├── openapi-2 │ │ │ ├── replace-operation.after.json │ │ │ ├── replace-operation.before.json │ │ │ └── replace-operation.commands.json │ │ └── openapi-3 │ │ │ ├── replace-operation.after.json │ │ │ ├── replace-operation.before.json │ │ │ └── replace-operation.commands.json │ ├── replace-path-item │ │ ├── openapi-2 │ │ │ ├── replace-path-item.after.json │ │ │ ├── replace-path-item.before.json │ │ │ └── replace-path-item.commands.json │ │ └── openapi-3 │ │ │ ├── replace-path-item.after.json │ │ │ ├── replace-path-item.before.json │ │ │ └── replace-path-item.commands.json │ ├── replace-response-definition │ │ ├── openapi-2 │ │ │ ├── replace-response-definition.after.json │ │ │ ├── replace-response-definition.before.json │ │ │ └── replace-response-definition.commands.json │ │ └── openapi-3 │ │ │ ├── replace-response-definition.after.json │ │ │ ├── replace-response-definition.before.json │ │ │ └── replace-response-definition.commands.json │ ├── replace-schema-definition │ │ ├── asyncapi-2 │ │ │ ├── replace-schema-definition.after.json │ │ │ ├── replace-schema-definition.before.json │ │ │ └── replace-schema-definition.commands.json │ │ ├── openapi-2 │ │ │ ├── replace-schema-definition.after.json │ │ │ ├── replace-schema-definition.before.json │ │ │ └── replace-schema-definition.commands.json │ │ └── openapi-3 │ │ │ ├── replace-schema-definition.after.json │ │ │ ├── replace-schema-definition.before.json │ │ │ └── replace-schema-definition.commands.json │ ├── replace-security-requirement │ │ ├── asyncapi-2 │ │ │ ├── replace-security-requirement.after.json │ │ │ ├── replace-security-requirement.before.json │ │ │ └── replace-security-requirement.commands.json │ │ └── openapi-3 │ │ │ ├── replace-security-requirement.after.json │ │ │ ├── replace-security-requirement.before.json │ │ │ └── replace-security-requirement.commands.json │ ├── set-example │ │ ├── openapi-2 │ │ │ ├── replace-example.after.json │ │ │ ├── replace-example.before.json │ │ │ ├── replace-example.commands.json │ │ │ ├── set-example.after.json │ │ │ ├── set-example.before.json │ │ │ └── set-example.commands.json │ │ └── openapi-3 │ │ │ ├── replace-example-requestBody.after.json │ │ │ ├── replace-example-requestBody.before.json │ │ │ ├── replace-example-requestBody.commands.json │ │ │ ├── set-example-requestBody.after.json │ │ │ ├── set-example-requestBody.before.json │ │ │ ├── set-example-requestBody.commands.json │ │ │ ├── set-example-response.after.json │ │ │ ├── set-example-response.before.json │ │ │ ├── set-example-response.commands.json │ │ │ ├── set-exampleObject.after.json │ │ │ ├── set-exampleObject.before.json │ │ │ └── set-exampleObject.commands.json │ └── set-extension │ │ ├── openapi-2 │ │ ├── replace-extension.after.json │ │ ├── replace-extension.before.json │ │ ├── replace-extension.commands.json │ │ ├── set-extension.after.json │ │ ├── set-extension.before.json │ │ └── set-extension.commands.json │ │ └── openapi-3 │ │ ├── replace-extension.after.json │ │ ├── replace-extension.before.json │ │ ├── replace-extension.commands.json │ │ ├── set-extension.after.json │ │ ├── set-extension.before.json │ │ └── set-extension.commands.json ├── tests-backup.json └── tests.json ├── dereference ├── aai2 │ ├── kitchen-sink.expected.json │ └── kitchen-sink.input.json ├── oai2 │ ├── kitchen-sink.expected.json │ ├── kitchen-sink.input.json │ ├── no-changes-1.expected.json │ ├── no-changes-1.input.json │ ├── no-changes-2.expected.json │ └── no-changes-2.input.json ├── oai3 │ ├── 3-level-dereference.expected.json │ ├── 3-level-dereference.input.json │ ├── address-ref.expected.json │ ├── address-ref.input.json │ ├── domino-issue-1366.expected.json │ ├── domino-issue-1366.json │ ├── inlined-path-item.expected.json │ ├── inlined-path-item.input.json │ ├── item-with-local-widget.expected.json │ ├── item-with-local-widget.input.json │ ├── kitchen-sink.expected.json │ ├── kitchen-sink.input.json │ ├── multi-ref-1.expected.json │ ├── multi-ref-1.input.json │ ├── no-changes-selfref.expected.json │ ├── no-changes-selfref.input.json │ ├── person-and-address-refs.expected.json │ ├── person-and-address-refs.input.json │ ├── person-and-person.expected.json │ ├── person-and-person.input.json │ ├── person-ref.expected.json │ ├── person-ref.input.json │ ├── person-with-address-and-spouse.expected.json │ ├── person-with-address-and-spouse.input.json │ ├── person-with-address.expected.json │ ├── person-with-address.input.json │ ├── person-with-relative-address-and-spouse.expected.json │ ├── person-with-relative-address-and-spouse.input.json │ ├── response.expected.json │ ├── response.input.json │ ├── self-ref-widget.expected.json │ └── self-ref-widget.input.json ├── tests.json └── tests.refs.json ├── io ├── asyncapi │ ├── 2.0 │ │ ├── complete │ │ │ ├── anyof.json │ │ │ ├── application-headers.json │ │ │ ├── complete-info.json │ │ │ ├── correlation-id.json │ │ │ ├── gitter-streaming.json │ │ │ ├── not.json │ │ │ ├── oneof.json │ │ │ ├── rpc-client.json │ │ │ ├── rpc-server.json │ │ │ ├── slack-rtm.json │ │ │ └── streetlights.json │ │ └── simple │ │ │ ├── simple-info-extensions.json │ │ │ ├── simple-info-extraProperties.json │ │ │ ├── simple-info.json │ │ │ └── simplest.json │ └── 3.0 │ │ ├── complete │ │ ├── adeo-kafka-request-reply-asyncapi.json │ │ ├── anyof-asyncapi.json │ │ ├── application-headers-asyncapi.json │ │ ├── correlation-id-asyncapi.json │ │ ├── gitter-streaming-asyncapi.json │ │ ├── kraken-websocket-request-reply-message-filter-in-reply-asyncapi.json │ │ ├── kraken-websocket-request-reply-multiple-channels-asyncapi.json │ │ ├── mercure-asyncapi.json │ │ ├── not-asyncapi.json │ │ ├── oneof-asyncapi.json │ │ ├── operation-security-asyncapi.json │ │ ├── rpc-client-asyncapi.json │ │ ├── rpc-server-asyncapi.json │ │ ├── simple-asyncapi.json │ │ ├── slack-rtm-asyncapi.json │ │ ├── streetlights-kafka-asyncapi.json │ │ ├── streetlights-mqtt-asyncapi.json │ │ ├── streetlights-operation-security-asyncapi.json │ │ └── websocket-gemini-asyncapi.json │ │ └── simple │ │ ├── simple-info-extensions.json │ │ ├── simple-info-extraProperties.json │ │ ├── simple-info.json │ │ └── simplest.json ├── openapi │ ├── 2.0 │ │ ├── complete │ │ │ ├── api.meerkat.com.br.json │ │ │ ├── austin2015.apistrat.com.json │ │ │ ├── complete-securityDefinitions.json │ │ │ ├── complete-tags.json │ │ │ ├── developer.trade.gov.json │ │ │ ├── pet-store.json │ │ │ ├── subnet.api.hairmare.ch.json │ │ │ └── www.weatherbit.io.json │ │ ├── definitions │ │ │ ├── json-schema-basic.json │ │ │ ├── json-schema-fstab.json │ │ │ ├── json-schema-products.json │ │ │ ├── primitive.json │ │ │ ├── schema-with-additionalProperties.json │ │ │ ├── schema-with-allOf.json │ │ │ ├── schema-with-composition.json │ │ │ ├── schema-with-example.json │ │ │ ├── schema-with-extension.json │ │ │ ├── schema-with-externalDocs.json │ │ │ ├── schema-with-metaData.json │ │ │ ├── schema-with-polymorphism.json │ │ │ ├── schema-with-xml.json │ │ │ └── spec-example-1.json │ │ ├── extra-properties │ │ │ └── extra-properties.json │ │ ├── invalid-version.json │ │ ├── parameters │ │ │ ├── array-param.json │ │ │ └── spec-example-1.json │ │ ├── paths │ │ │ ├── paths-all-operations.json │ │ │ ├── paths-default-response.json │ │ │ ├── paths-empty.json │ │ │ ├── paths-externalDocs.json │ │ │ ├── paths-get-with-params.json │ │ │ ├── paths-get-with-tags.json │ │ │ ├── paths-get.json │ │ │ ├── paths-path-with-params.json │ │ │ ├── paths-ref.json │ │ │ ├── paths-response-with-examples.json │ │ │ ├── paths-response-with-headers.json │ │ │ ├── paths-response-with-ref.json │ │ │ ├── paths-response-with-schema.json │ │ │ ├── paths-responses-with-extensions.json │ │ │ ├── paths-responses.json │ │ │ ├── paths-security.json │ │ │ └── paths-with-extensions.json │ │ ├── responses │ │ │ ├── response-spec-examples.json │ │ │ └── spec-example-1.json │ │ ├── securityDefinitions │ │ │ └── securityDefinitions.json │ │ └── simple │ │ │ ├── simple-externalDocs.json │ │ │ ├── simple-info-extensions.json │ │ │ ├── simple-info.json │ │ │ ├── simple-security.json │ │ │ ├── simple-tags.json │ │ │ └── simplest.json │ ├── 3.0 │ │ ├── complete │ │ │ └── complete-tags.json │ │ ├── components │ │ │ ├── components-callbacks.json │ │ │ ├── components-empty.json │ │ │ ├── components-examples.json │ │ │ ├── components-headers.json │ │ │ ├── components-links.json │ │ │ ├── components-parameters.json │ │ │ ├── components-ref-loops.json │ │ │ ├── components-requestBodies.json │ │ │ ├── components-responses.json │ │ │ ├── components-schemas-extensions.json │ │ │ ├── components-schemas.json │ │ │ └── components-securitySchemes.json │ │ ├── extra-properties │ │ │ └── extra-properties.json │ │ ├── paths │ │ │ ├── paths-all-operations.json │ │ │ ├── paths-empty.json │ │ │ ├── paths-get-callbacks.json │ │ │ ├── paths-get-parameters.json │ │ │ ├── paths-get-requestBody-content.json │ │ │ ├── paths-get-requestBody-example.json │ │ │ ├── paths-get-requestBody.json │ │ │ ├── paths-get-response-content.json │ │ │ ├── paths-get-response-headers.json │ │ │ ├── paths-get-response-links.json │ │ │ ├── paths-get-responses.json │ │ │ ├── paths-get-security-anon.json │ │ │ ├── paths-get-security.json │ │ │ ├── paths-get-servers.json │ │ │ ├── paths-get.json │ │ │ ├── paths-parameters.json │ │ │ ├── paths-ref.json │ │ │ ├── paths-servers.json │ │ │ └── paths-with-extensions.json │ │ ├── schemas │ │ │ ├── additionalProperties.json │ │ │ └── discriminator.json │ │ └── simple │ │ │ ├── simple-externalDocs.json │ │ │ ├── simple-info-extensions.json │ │ │ ├── simple-info.json │ │ │ ├── simple-security.json │ │ │ ├── simple-servers.json │ │ │ ├── simple-tags.json │ │ │ └── simplest.json │ └── 3.1 │ │ └── recursive │ │ └── allof-self-ref.json └── tests.json ├── paths ├── asyncapi │ └── 2.0 │ │ ├── info.json │ │ ├── info.json.expected.json │ │ ├── root.json │ │ └── root.json.expected.json ├── io-tests.json ├── openapi │ ├── 2.0 │ │ ├── items-schemaList.json │ │ └── items-schemaList.json.expected.json │ └── 3.0 │ │ ├── additionalProperties.json │ │ ├── additionalProperties.json.expected.json │ │ ├── items.json │ │ └── items.json.expected.json └── resolve-tests.json ├── transformation ├── aai24-aai25 │ ├── streetlights.expected.json │ └── streetlights.input.json ├── oai20-oai30 │ ├── definitions │ │ ├── json-schema-basic.expected.json │ │ ├── json-schema-basic.input.json │ │ ├── json-schema-fstab.expected.json │ │ ├── json-schema-fstab.input.json │ │ ├── json-schema-products.expected.json │ │ ├── json-schema-products.input.json │ │ ├── primitive.expected.json │ │ ├── primitive.input.json │ │ ├── schema-with-additionalProperties.expected.json │ │ ├── schema-with-additionalProperties.input.json │ │ ├── schema-with-allOf.expected.json │ │ ├── schema-with-allOf.input.json │ │ ├── schema-with-composition.expected.json │ │ ├── schema-with-composition.input.json │ │ ├── schema-with-example.expected.json │ │ ├── schema-with-example.input.json │ │ ├── schema-with-extension.expected.json │ │ ├── schema-with-extension.input.json │ │ ├── schema-with-externalDocs.expected.json │ │ ├── schema-with-externalDocs.input.json │ │ ├── schema-with-metaData.expected.json │ │ ├── schema-with-metaData.input.json │ │ ├── schema-with-polymorphism.expected.json │ │ ├── schema-with-polymorphism.input.json │ │ ├── schema-with-xml.expected.json │ │ ├── schema-with-xml.input.json │ │ ├── spec-example-1.expected.json │ │ └── spec-example-1.input.json │ ├── parameters │ │ ├── array-param.expected.json │ │ ├── array-param.input.json │ │ ├── body-param.expected.json │ │ ├── body-param.input.json │ │ ├── file-param.expected.json │ │ ├── file-param.input.json │ │ ├── single-array-param.expected.json │ │ ├── single-array-param.input.json │ │ ├── spec-example-1.expected.json │ │ └── spec-example-1.input.json │ ├── paths │ │ ├── paths-all-operations.expected.json │ │ ├── paths-all-operations.input.json │ │ ├── paths-default-response.expected.json │ │ ├── paths-default-response.input.json │ │ ├── paths-externalDocs.expected.json │ │ ├── paths-externalDocs.input.json │ │ ├── paths-get-with-params.expected.json │ │ ├── paths-get-with-params.input.json │ │ ├── paths-get-with-schemes.expected.json │ │ ├── paths-get-with-schemes.input.json │ │ ├── paths-get-with-tags.expected.json │ │ ├── paths-get-with-tags.input.json │ │ ├── paths-get.expected.json │ │ ├── paths-get.input.json │ │ ├── paths-path-with-params.expected.json │ │ ├── paths-path-with-params.input.json │ │ ├── paths-post-with-formData-multi.expected.json │ │ ├── paths-post-with-formData-multi.input.json │ │ ├── paths-post-with-formData.expected.json │ │ ├── paths-post-with-formData.input.json │ │ ├── paths-ref.expected.json │ │ ├── paths-ref.input.json │ │ ├── paths-response-with-examples.expected.json │ │ ├── paths-response-with-examples.input.json │ │ ├── paths-response-with-headers.expected.json │ │ ├── paths-response-with-headers.input.json │ │ ├── paths-response-with-schema.expected.json │ │ ├── paths-response-with-schema.input.json │ │ ├── paths-responses-with-extensions.expected.json │ │ ├── paths-responses-with-extensions.input.json │ │ ├── paths-responses.expected.json │ │ ├── paths-responses.input.json │ │ ├── paths-security.expected.json │ │ ├── paths-security.input.json │ │ ├── paths-with-extensions.expected.json │ │ └── paths-with-extensions.input.json │ ├── references │ │ ├── bodyParam-reference.expected.json │ │ ├── bodyParam-reference.input.json │ │ ├── formDataParam-reference.expected.json │ │ ├── formDataParam-reference.input.json │ │ ├── parameter-reference.expected.json │ │ ├── parameter-reference.input.json │ │ ├── response-reference.expected.json │ │ ├── response-reference.input.json │ │ ├── schema-reference.expected.json │ │ └── schema-reference.input.json │ ├── responses │ │ ├── response-array-param.expected.json │ │ ├── response-array-param.input.json │ │ ├── response-spec-examples.expected.json │ │ ├── response-spec-examples.input.json │ │ ├── spec-example-1.expected.json │ │ └── spec-example-1.input.json │ ├── security │ │ ├── security-allSchemes.expected.json │ │ └── security-allSchemes.input.json │ └── simple │ │ ├── simple-info-extensions.expected.json │ │ ├── simple-info-extensions.input.json │ │ ├── simple-info.expected.json │ │ ├── simple-info.input.json │ │ ├── simple-server-with-schemes.expected.json │ │ ├── simple-server-with-schemes.input.json │ │ ├── simple-server.expected.json │ │ ├── simple-server.input.json │ │ ├── simplest.expected.json │ │ └── simplest.input.json ├── oai20-oai31 │ ├── __actual.json │ ├── petstore.expected.json │ └── petstore.input.json ├── oai30-oai31 │ ├── tenant-management │ │ ├── tenant-management.expected.json │ │ └── tenant-management.input.json │ └── transformations │ │ ├── transformation.expected.json │ │ └── transformation.input.json └── tests.json └── validation ├── asyncapi └── 2.0 │ ├── flow-required-properties.json │ ├── flow-required-properties.json.expected │ ├── required-property-invalid.json │ ├── required-property-invalid.json.expected │ ├── required-property-valid.json │ ├── required-property-valid.json.expected │ └── simple │ ├── info.json │ ├── info.json.expected │ ├── valid-simple.json │ └── valid-simple.json.expected ├── openapi ├── 2.0 │ ├── document-invalid-property-format.json │ ├── document-invalid-property-format.json.expected │ ├── document-required-properties.json │ ├── document-required-properties.json.expected │ ├── identical-path-template.json │ ├── identical-path-template.json.expected │ ├── info-invalid-property-format.json │ ├── info-invalid-property-format.json.expected │ ├── info-required-properties.json │ ├── info-required-properties.json.expected │ ├── invalid-property-name.json │ ├── invalid-property-name.json.expected │ ├── invalid-reference.json │ ├── invalid-reference.json.expected │ ├── japanese-characters.json │ ├── japanese-characters.json.expected │ ├── mutually-exclusive.json │ ├── mutually-exclusive.json.expected │ ├── operation-id.json │ ├── operation-id.json.expected │ ├── pet-store-extra-properties.json │ ├── pet-store-extra-properties.json.expected │ ├── security-requirement-uniqueness.json │ ├── security-requirement-uniqueness.json.expected │ ├── security-scheme-invalid-property-format.json │ ├── security-scheme-invalid-property-format.json.expected │ ├── security-scheme-required-properties.json │ ├── security-scheme-required-properties.json.expected │ ├── uniqueness.json │ ├── uniqueness.json.expected │ ├── valid-pet-store.json │ └── valid-pet-store.json.expected ├── 3.0 │ ├── data-type-reference.json │ ├── data-type-reference.json.expected │ ├── duplicate-path-param.json │ ├── duplicate-path-param.json.expected │ ├── ignored-property-name.json │ ├── ignored-property-name.json.expected │ ├── invalid-property-format.json │ ├── invalid-property-format.json.expected │ ├── invalid-property-name.json │ ├── invalid-property-name.json.expected │ ├── invalid-property-type.json │ ├── invalid-property-type.json.expected │ ├── invalid-property-value.json │ ├── invalid-property-value.json.expected │ ├── invalid-reference.json │ ├── invalid-reference.json.expected │ ├── mutually-exclusive.json │ ├── mutually-exclusive.json.expected │ ├── oauth-flow-scopes.json │ ├── oauth-flow-scopes.json.expected │ ├── operation-id.json │ ├── operation-id.json.expected │ ├── operation-properties.json │ ├── operation-properties.json.expected │ ├── required-property-root.json │ ├── required-property-root.json.expected │ ├── required-property.json │ ├── required-property.json.expected │ ├── uniqueness.json │ ├── uniqueness.json.expected │ ├── unknown-properties.json │ ├── unknown-properties.json.expected │ ├── valid-pet-store.json │ └── valid-pet-store.json.expected ├── 3.1 │ ├── issue-6612.json │ ├── issue-6612.json.expected │ ├── multiple-schema-types.json │ └── multiple-schema-types.json.expected └── issues │ ├── 88 │ ├── response-def-description.json │ └── response-def-description.json.expected │ └── 804 │ ├── formData-params.json │ └── formData-params.json.expected ├── shared └── _external-types.json └── tests.json /.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /target/ 3 | .generated 4 | .ts 5 | .js 6 | .jsweet 7 | .project 8 | .settings 9 | .classpath 10 | website 11 | # Intellij project files 12 | /.idea/ 13 | *.iml 14 | jsweet_extension/io/apicurio/JacksonAdapter.class 15 | -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/sourcemap-builder/1.0.0/sourcemap-builder-1.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/sourcemap-builder/1.0.0/sourcemap-builder-1.0.0.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/typescript.java-ts.core/1.4.0.1/typescript.java-ts.core-1.4.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/typescript.java-ts.core/1.4.0.1/typescript.java-ts.core-1.4.0.1.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3-sources.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.3/typescript.java-ts.core-2.0.3.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.4/typescript.java-ts.core-2.0.4-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.4/typescript.java-ts.core-2.0.4-sources.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.4/typescript.java-ts.core-2.0.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/ext/typescript.java-ts.core/2.0.4/typescript.java-ts.core-2.0.4.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/jsweet-maven-plugin/2.3.5/jsweet-maven-plugin-2.3.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/jsweet-maven-plugin/2.3.5/jsweet-maven-plugin-2.3.5.jar -------------------------------------------------------------------------------- /dependencies/org/jsweet/jsweet-transpiler/2.3.5/jsweet-transpiler-2.3.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/dependencies/org/jsweet/jsweet-transpiler/2.3.5/jsweet-transpiler-2.3.5.jar -------------------------------------------------------------------------------- /jsweet_extension/build_extensions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | javac io/apicurio/JacksonAdapter.java -classpath ~/.m2/repository/org/jsweet/jsweet-transpiler/3.1.0/jsweet-transpiler-3.1.0.jar 4 | -------------------------------------------------------------------------------- /jsweetconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "adapters": [ 3 | "io.apicurio.JacksonAdapter" 4 | ] 5 | } -------------------------------------------------------------------------------- /src/main/resources/specs/README.asciidoc: -------------------------------------------------------------------------------- 1 | Keep this folder synchronized with Apicurio Data Models repository (which is the canonical location for the specifications). 2 | 3 | Feature TODOs: 4 | 5 | - default values for properties 6 | - validation for properties, e.g. positive integer property 7 | -------------------------------------------------------------------------------- /src/main/resources/specs/openapi.yaml: -------------------------------------------------------------------------------- 1 | name: OpenAPI 2 | url: https://www.openapis.org/ 3 | description: The OpenAPI Specification allows the description of a remote API accessible through HTTP or HTTP-like protocols. 4 | prefix: OpenApi 5 | namespace: io.apicurio.datamodels.models.openapi 6 | versions: 7 | - $ref: ./openapi/openapi-2.0.yaml 8 | - $ref: ./openapi/openapi-3.0.yaml 9 | - $ref: ./openapi/openapi-3.1.yaml 10 | -------------------------------------------------------------------------------- /src/main/ts/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @module 3 | */ 4 | export * from './src/core'; -------------------------------------------------------------------------------- /src/main/ts/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "roots": [ 3 | "/src", 4 | "/tests" 5 | ], 6 | "transform": { 7 | "^.+\\.tsx?$": "ts-jest" 8 | }, 9 | "verbose": true 10 | } 11 | -------------------------------------------------------------------------------- /src/main/ts/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | entry: "./dist/index.js", 5 | output: { 6 | path: path.resolve(__dirname, "dist"), 7 | filename: "bundles/apicurio-data-models.umd.js", 8 | library: { 9 | name: "ApicurioDM", 10 | type: "umd" 11 | } 12 | }, 13 | }; -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-channel-item/asyncapi-2/add-channel-item-with-conflict.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddChannelItemCommand", 4 | "_newChannelItemName": "alreadyExists", 5 | "_newChannelItemObj": {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-channel-item/asyncapi-2/add-channel-item.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddChannelItemCommand", 4 | "_newChannelItemName": "newChannel", 5 | "_newChannelItemObj": {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-child-schema/openapi-3/add-child-schema.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddChildSchemaCommand", 4 | "_schemaPath": "/components/schemas[AllOfDataType]", 5 | "_newChildSchemaType": "allOf", 6 | "_newChildSchemaObj": { 7 | "$ref": "#!/components/schemas/Baz" 8 | } 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-definition/openapi-2/add-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSchemaDefinitionCommand", 4 | "_newDefinitionName" : "Empty", 5 | "_newDefinitionObj" : {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-definition/openapi-2/clone-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSchemaDefinitionCommand", 4 | "_newDefinitionName": "CategoryClone", 5 | "_newDefinitionObj": { 6 | "type": "object", 7 | "properties": { 8 | "id": { 9 | "type": "integer", 10 | "format": "int64" 11 | }, 12 | "name": { 13 | "type": "string" 14 | } 15 | } 16 | } 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-definition/openapi-3/add-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSchemaDefinitionCommand", 4 | "_newDefinitionName" : "EmptySchema", 5 | "_newDefinitionObj" : {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-example/openapi-3/add-example-exists.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/]/get/responses[200]/content[application/json]", 5 | "_newExampleValue": "WILL-NOT-BE-ADDED", 6 | "_newExampleName": "foo", 7 | "_newExampleSummary": null, 8 | "_newExampleDescription": null 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-example/openapi-3/add-example-first.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/]/get/responses[300]/content[application/json]", 5 | "_newExampleValue": "{ \"prop\": true }", 6 | "_newExampleName": "FOOF", 7 | "_newExampleSummary": null, 8 | "_newExampleDescription": null 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-example/openapi-3/add-example.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/]/get/responses[200]/content[application/json]", 5 | "_newExampleValue": { 6 | "property1": "hello", 7 | "property2": "world", 8 | "property3": true 9 | }, 10 | "_newExampleName": "bar", 11 | "_newExampleSummary": "Bar Example", 12 | "_newExampleDescription": "The bar example!" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-message-example/asyncapi-2/add-message-example-exists.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "AddMessageExampleCommand_Aai20", 3 | "_newExampleValue": "{ \"foo\": \"string\", \"bar\": true }", 4 | "_parentPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-message-example/asyncapi-2/add-message-example-json.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-message-example/asyncapi-2/add-message-example-json.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "AddMessageExampleCommand_Aai20", 3 | "_newExampleValue": { 4 | "foo": "string", 5 | "bar": true 6 | }, 7 | "_parentPath": "/channels[myChannel]/subscribe" 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-message-example/asyncapi-2/add-message-example.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-message-example/asyncapi-2/add-message-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "AddMessageExampleCommand_Aai20", 3 | "_newExampleValue": "{ \"foo\": \"string\", \"bar\": true }", 4 | "_parentPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-oneof-message/asyncapi-2/add-oneof-message.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddOneOfInMessageCommand", 4 | "_parentPath": "/channels[999testtest99]/publish/message", 5 | "_newOneOf": 6 | { 7 | "$ref": "#/components/messages/PhoneNumberChanged" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-parameter-example/openapi-3/add-parameter-example-exists.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/test]/parameters[0]", 5 | "_newExampleValue": { 6 | "property1": "hello", 7 | "property2": "world", 8 | "property3": true 9 | }, 10 | "_newExampleName": "bar", 11 | "_newExampleSummary": "Bar Example", 12 | "_newExampleDescription": "The bar example!" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-parameter-example/openapi-3/add-parameter-example-multi.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/test]/parameters[0]", 5 | "_newExampleValue": { 6 | "property1": "hello", 7 | "property2": "world", 8 | "property3": true 9 | }, 10 | "_newExampleName": "bar", 11 | "_newExampleSummary": "Bar Example", 12 | "_newExampleDescription": "The bar example!" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-parameter-example/openapi-3/add-parameter-example.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddExampleCommand", 4 | "_parentPath": "/paths[/test]/parameters[0]", 5 | "_newExampleValue": { 6 | "property1": "hello", 7 | "property2": "world", 8 | "property3": true 9 | }, 10 | "_newExampleName": "bar", 11 | "_newExampleSummary": "Bar Example", 12 | "_newExampleDescription": "The bar example!" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-path-item/openapi-2/add-path-item.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddPathItemCommand", 4 | "_newPathItemName": "/newPath", 5 | "_newPathItemObj": {} 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-path-item/openapi-3/add-path-item.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddPathItemCommand", 4 | "_newPathItemName": "/newPath", 5 | "_newPathItemObj": {} 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/add-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "responses" : { 4 | "Error": { 5 | "description": "The error response" 6 | }, 7 | "NotFound": { 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/add-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "responses" : { 4 | "Error": { 5 | "description": "The error response" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/add-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddResponseDefinitionCommand", 4 | "_newDefinitionName" : "NotFound", 5 | "_newDefinitionObj" : {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/clone-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "responses" : { 4 | "Error": { 5 | "description": "The error response" 6 | }, 7 | "NotFound": { 8 | "description": "The cloned response." 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/clone-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "responses" : { 4 | "Error": { 5 | "description": "The error response" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-2/clone-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddResponseDefinitionCommand", 4 | "_newDefinitionName": "NotFound", 5 | "_newDefinitionObj": { 6 | "description": "The cloned response." 7 | } 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/add-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "Error":{ 6 | "description": "The error response." 7 | }, 8 | "NotFound": { 9 | } 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/add-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "Error":{ 6 | "description": "The error response." 7 | } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/add-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddResponseDefinitionCommand", 4 | "_newDefinitionName" : "NotFound", 5 | "_newDefinitionObj" : {} 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/clone-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "Error":{ 6 | "description": "The error response." 7 | }, 8 | "NotFound": { 9 | "description": "The cloned response." 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/clone-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "Error":{ 6 | "description": "The error response." 7 | } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-response-definition/openapi-3/clone-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddResponseDefinitionCommand", 4 | "_newDefinitionName": "NotFound", 5 | "_newDefinitionObj": { 6 | "description": "The cloned response." 7 | } 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/asyncapi-2/add-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [ { 2 | "__type": "AddSecurityRequirementCommand", 3 | "_parentPath" : "/servers/production", 4 | "_requirement" : { 5 | "oauth2Scheme": [ 6 | "write:pets" 7 | ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-2/add-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSecurityRequirementCommand", 4 | "_parentPath" : "/", 5 | "_requirement" : { 6 | "Auth1" : [], 7 | "Auth2" : [ "s1", "s2", "s3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-doc2.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "BasicAuth": [], 11 | "MyOAuth": [ "read", "write" ] 12 | }, 13 | { 14 | "Auth1": [], 15 | "Auth2": [ "s1", "s2", "s3" ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-doc2.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "BasicAuth": [], 11 | "MyOAuth": [ "read", "write" ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-doc2.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSecurityRequirementCommand", 4 | "_parentPath" : "/", 5 | "_requirement" : { 6 | "Auth1" : [], 7 | "Auth2" : [ "s1", "s2", "s3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-op.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2", 8 | "security": [ 9 | { 10 | "Auth1": [], 11 | "Auth2": [ "s1", "s2", "s3" ] 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-op.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2" 8 | } 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement-op.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSecurityRequirementCommand", 4 | "_parentPath" : "/paths[/]/get", 5 | "_requirement" : { 6 | "Auth1" : [], 7 | "Auth2" : [ "s1", "s2", "s3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "Auth1": [], 8 | "Auth2": [ "s1", "s2", "s3" ] 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | } 5 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/add-security-requirement/openapi-3/add-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "AddSecurityRequirementCommand", 4 | "_parentPath" : "/", 5 | "_requirement" : { 6 | "Auth1" : [], 7 | "Auth2" : [ "s1", "s2", "s3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-contact-info/openapi-2/add-contact-info.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeContactCommand", 4 | "_newName" : "New Contact", 5 | "_newEmail" : "new.contact@example.com", 6 | "_newUrl" : "urn:example.org/newContact" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-contact-info/openapi-2/update-contact-info.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeContactCommand", 4 | "_newName" : "Updated Contact", 5 | "_newEmail" : "updated.contact@example.com", 6 | "_newUrl" : "urn:example.org/updatedContact" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-contact-info/openapi-3/add-contact-info.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "info" : { 4 | "title": "Sample Pet Store App", 5 | "description": "This is a sample server for a pet store.", 6 | "termsOfService": "http://example.com/terms/", 7 | "license": { 8 | "name": "Apache 2.0", 9 | "url": "http://www.apache.org/licenses/LICENSE-2.0.html" 10 | }, 11 | "version": "1.0.1" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-contact-info/openapi-3/add-contact-info.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeContactCommand", 4 | "_newName" : "New Contact", 5 | "_newEmail" : "new.contact@example.com", 6 | "_newUrl" : "urn:example.org/newContact" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-contact-info/openapi-3/update-contact-info.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeContactCommand", 4 | "_newName" : "Updated Contact", 5 | "_newEmail" : "updated.contact@example.com", 6 | "_newUrl" : "urn:example.org/updatedContact" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-description/openapi-2/add-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeDescriptionCommand", 4 | "_newDescription": "A description we added." 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-description/openapi-2/change-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeDescriptionCommand", 4 | "_newDescription": "An updated description." 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-description/openapi-3/add-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeDescriptionCommand", 4 | "_newDescription": "A description we added." 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-description/openapi-3/change-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeDescriptionCommand", 4 | "_newDescription": "An updated description." 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-header-type/openapi-3/change-header-type-response.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeHeaderTypeCommand", 4 | "_headerPath" : "/paths[/foo]/get/responses[200]/headers[X-RateLimit-Remaining]", 5 | "_headerName" : "X-RateLimit-Remaining", 6 | "_newType" : { 7 | "type": "string" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-header/openapi-3/change-header-response.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeHeaderCommand", 4 | "_parentPath": "/paths[/foo]/get/responses[200]", 5 | "_headerName": "X-RateLimit-Remaining", 6 | "_newHeader": { 7 | "description": "The number of allowed requests in the current period", 8 | "schema": { 9 | "type": "integer" 10 | } 11 | } 12 | } 13 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangeHeadersRefCommand_Aai20", 3 | "_headersRef": "NotAReference", 4 | "_messagePath": "/channels[myChannel]/subscribe/message" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangeHeadersRefCommand_Aai20", 3 | "_headersRef": "NotAReference", 4 | "_operationPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-msg.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-msg.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangeHeadersRefCommand_Aai20", 3 | "_headersRef": "#/components/schema/UserSignedUpHeaders", 4 | "_messagePath": "/channels[myChannel]/subscribe/message" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangeHeadersRefCommand_Aai20", 3 | "_headersRef": "#/components/schema/UserSignedUpHeaders", 4 | "_operationPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-license/openapi-2/add-license.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeLicenseCommand", 4 | "_newLicenseName": "Apache 2.0", 5 | "_newLicenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-license/openapi-2/change-license.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeLicenseCommand", 4 | "_newLicenseName": "Apache 2.0", 5 | "_newLicenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-license/openapi-3/add-license.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeLicenseCommand", 4 | "_newLicenseName": "Apache 2.0", 5 | "_newLicenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-license/openapi-3/change-license.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeLicenseCommand", 4 | "_newLicenseName": "Apache 2.0", 5 | "_newLicenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-media-type-type/openapi-3/change-media-type-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeMediaTypeTypeCommand", 4 | "_mediaTypePath" : "/paths[/foo]/get/responses[200]/content[application/json]", 5 | "_mediaTypeName" : "application/json", 6 | "_newType" : { 7 | "type": "string", 8 | "enum": [ "option1", "option2", "option3" ] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-media-type-type/openapi-3/change-media-type-type-response.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeMediaTypeTypeCommand", 4 | "_mediaTypePath" : "/paths[/foo]/get/responses[200]/content[application/json]", 5 | "_mediaTypeName" : "application/json", 6 | "_newType" : { 7 | "type": "string", 8 | "as": "date" 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-2/add-parameter-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/pets]/get/parameters[0]", 5 | "_newType" : { 6 | "type": "array", 7 | "of": { 8 | "type": "integer", 9 | "as": "int64" 10 | } 11 | } 12 | } 13 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-2/change-parameter-definition-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterDefinitionTypeCommand", 4 | "_paramPath" : "/parameters[skipParam]", 5 | "_newType" : { 6 | "type": "integer", 7 | "as": "int32" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-2/change-parameter-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type" : "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/pets]/get/parameters[1]", 5 | "_newType" : { 6 | "type": "string", 7 | "enum": [ "option1", "option2", "option3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-2/change-parameter-type-required.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type" : "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/pets]/get/parameters[1]", 5 | "_newType" : { 6 | "type": "#/definitions/User", 7 | "required": false 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-2/change-parameter-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type" : "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/pets]/get/parameters[0]", 5 | "_newType" : { 6 | "type": "array", 7 | "of": { 8 | "type": "integer", 9 | "as": "int64" 10 | } 11 | } 12 | } 13 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-3/add-parameter-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/foo]/get/parameters[0]", 5 | "_newType" : { 6 | "type": "string" 7 | } 8 | } 9 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-3/change-parameter-definition-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterDefinitionTypeCommand", 4 | "_paramPath" : "/components/parameters[Param1]", 5 | "_newType" : { 6 | "type": "string" 7 | } 8 | } 9 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-3/change-parameter-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/foo]/get/parameters[1]", 5 | "_newType" : { 6 | "type": "string", 7 | "enum": [ "option1", "option2", "option3" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-3/change-parameter-type-required.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterTypeCommand", 4 | "_paramPath": "/paths[/foo]/get/parameters[1]", 5 | "_newType": { 6 | "type": "array", 7 | "of": { 8 | "type": "string" 9 | }, 10 | "required": true 11 | } 12 | } 13 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-parameter-type/openapi-3/change-parameter-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeParameterTypeCommand", 4 | "_paramPath" : "/paths[/foo]/get/parameters[0]", 5 | "_newType" : { 6 | "type": "string" 7 | } 8 | } 9 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-payload-ref/asyncapi-2/change-payload-ref-msg.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-payload-ref/asyncapi-2/change-payload-ref-msg.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangePayloadRefCommand_Aai20", 3 | "_payloadRef": "#/components/schema/UserSignedUpEvent", 4 | "_messagePath": "/channels[myChannel]/subscribe/message" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-payload-ref/asyncapi-2/change-payload-ref.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-payload-ref/asyncapi-2/change-payload-ref.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ChangePayloadRefCommand_Aai20", 3 | "_payloadRef": "#/components/schema/UserSignedUpEvent", 4 | "_operationPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/asyncapi-2/change-property-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand_Aai20", 4 | "_propPath": "/components/schemas[Group]/properties[type]", 5 | "_propName": "type", 6 | "_newType": { 7 | "type" :"string", 8 | "enum" :["type1", "type2"] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/asyncapi-2/change-property-type-required-empty.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand_Aai20", 4 | "_propPath": "/components/schemas[Person]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/asyncapi-2/change-property-type-required.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand_Aai20", 4 | "_propPath": "/components/schemas[Person]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-2/change-property-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/definitions[Person]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "enum": [ "option1", "option2", "option3", "option4" ] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-2/change-property-type-required-empty.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/definitions[Person]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-2/change-property-type-required.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/definitions[Person]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-2/change-property-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/definitions[Person]/properties[id]", 5 | "_propName": "id", 6 | "_newType": { 7 | "type": "string", 8 | "as": "date-time", 9 | "required": false 10 | } 11 | } 12 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-3/change-property-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/components/schemas[MySchema1]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "enum" : [ "option1", "option2", "option3", "option4" ] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-3/change-property-type-required-empty.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/components/schemas[MySchema1]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-3/change-property-type-required.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/components/schemas[MySchema1]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "string", 8 | "required": false 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property-type/openapi-3/change-property-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyTypeCommand", 4 | "_propPath": "/components/schemas[MySchema1]/properties[name]", 5 | "_propName": "name", 6 | "_newType": { 7 | "type": "integer", 8 | "as" : "int32", 9 | "required": false 10 | } 11 | } 12 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property/asyncapi-2/change-ref-messages.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyCommand", 4 | 5 | "_nodePath": "/channels[999testtest99]/publish/message/oneOf[0]", 6 | "_property": "$ref", 7 | "_newValue": "#/components/messages/AddressChanged" 8 | } 9 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property/openapi-2/add-property.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyCommand", 4 | "_nodePath" : "/", 5 | "_property" : "host", 6 | "_newValue" : "example.org" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property/openapi-2/change-property.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyCommand", 4 | "_nodePath" : "/", 5 | "_property" : "host", 6 | "_newValue" : "updated.example.org" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property/openapi-3/add-property.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyCommand", 4 | "_nodePath" : "/info", 5 | "_property" : "termsOfService", 6 | "_newValue" : "http://example.com/terms/" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-property/openapi-3/change-property.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangePropertyCommand", 4 | "_nodePath" : "/info", 5 | "_property" : "termsOfService", 6 | "_newValue" : "http://example.com/updated-terms/" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-response-type/openapi-2/add-response-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeResponseTypeCommand", 4 | "_responsePath": "/paths[/pets]/get/responses[200]", 5 | "_newType": { 6 | "type": "string", 7 | "as": "date-time" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-response-type/openapi-2/change-response-definition-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeResponseDefinitionTypeCommand", 4 | "_responsePath": "/responses[ArrayComplexType]", 5 | "_newType": { 6 | "type": "string", 7 | "as": "date-time" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-response-type/openapi-2/change-response-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeResponseTypeCommand", 4 | "_responsePath": "/paths[/pets]/get/responses[200]", 5 | "_newType": { 6 | "type": "string", 7 | "enum": [ "option1", "option2" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-response-type/openapi-2/change-response-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeResponseTypeCommand", 4 | "_responsePath": "/paths[/pets]/get/responses[200]", 5 | "_newType": { 6 | "type": "string", 7 | "as": "date-time" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-inheritance/openapi-3/anyOf-to-allOf.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaInheritanceCommand", 4 | "_schemaPath": "/components/schemas[DataType]", 5 | "_newInheritanceType": "allOf" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-inheritance/openapi-3/anyOf-to-none.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaInheritanceCommand", 4 | "_schemaPath": "/components/schemas[DataType]", 5 | "_newInheritanceType": "none" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-inheritance/openapi-3/none-to-anyOf.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaInheritanceCommand", 4 | "_schemaPath": "/components/schemas[DataType]", 5 | "_newInheritanceType": "anyOf" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type-enum.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "definitions": { 4 | "Person": { 5 | "type": "string", 6 | "enum": [ 7 | "option1", 8 | "option2", 9 | "option3", 10 | "option4" 11 | ] 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type-enum.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "definitions": { 4 | "Person": { 5 | "type": "number" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaTypeCommand", 4 | "_schemaPath": "/definitions[Person]", 5 | "_newType": { 6 | "type": "string", 7 | "enum": [ "option1", "option2", "option3", "option4" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "definitions": { 4 | "Person": { 5 | "type": "string", 6 | "format": "date-time" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "definitions": { 4 | "Person": { 5 | "type": "string" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-2/change-schema-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaTypeCommand", 4 | "_schemaPath": "/definitions[Person]", 5 | "_newType": { 6 | "type": "string", 7 | "as": "date-time" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-3/change-schema-type-enum.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "schemas": { 5 | "MySchema1" : { 6 | "type": "string" 7 | }, 8 | "MySchema2": { 9 | "type": "string", 10 | "format": "email" 11 | }, 12 | "RefSchema":{ 13 | "$ref": "#/other/Ref" 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-3/change-schema-type-enum.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaTypeCommand", 4 | "_schemaPath": "/components/schemas[MySchema1]", 5 | "_newType": { 6 | "type": "string", 7 | "enum" : [ "option1", "option2", "option3", "option4" ] 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-3/change-schema-type.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "schemas": { 5 | "MySchema1" : { 6 | "type": "integer", 7 | "format": "int32" 8 | }, 9 | "MySchema2": { 10 | "type": "string", 11 | "format": "email" 12 | }, 13 | "RefSchema":{ 14 | "$ref": "#/other/Ref" 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-3/change-schema-type.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "schemas": { 5 | "MySchema1" : { 6 | "type": "string" 7 | }, 8 | "MySchema2": { 9 | "type": "string", 10 | "format": "email" 11 | }, 12 | "RefSchema":{ 13 | "$ref": "#/other/Ref" 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-schema-type/openapi-3/change-schema-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSchemaTypeCommand", 4 | "_schemaPath": "/components/schemas[MySchema1]", 5 | "_newType": { 6 | "type": "integer", 7 | "as" : "int32" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-security-scheme/asyncapi-2/change-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSecuritySchemeCommand_Aai20", 4 | "_schemeName": "myScheme", 5 | "_schemeObj": { 6 | "type": "apiKey", 7 | "in": "header" 8 | } 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-security-scheme/openapi-2/change-security-scheme.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "securityDefinitions" : { 4 | "api_key": { 5 | "type": "apiKey", 6 | "name": "api_key", 7 | "in": "header" 8 | }, 9 | "petstore_auth": { 10 | "type": "apiKey", 11 | "name": "api_key", 12 | "in": "header" 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-security-scheme/openapi-2/change-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSecuritySchemeCommand", 4 | "_schemeName": "petstore_auth", 5 | "_schemeObj": { 6 | "type": "apiKey", 7 | "name": "api_key", 8 | "in": "header" 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-security-scheme/openapi-3/change-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeSecuritySchemeCommand", 4 | "_schemeName": "ImplicitOAuth2", 5 | "_schemeObj": { 6 | "type": "http", 7 | "scheme": "bearer", 8 | "bearerFormat": "JWT" 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-title/openapi-2/add-title.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeTitleCommand", 4 | "_newTitle": "Swagger Sample App" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-title/openapi-2/change-title.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeTitleCommand", 4 | "_newTitle": "Updated Title" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-title/openapi-3/add-title.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeTitleCommand", 4 | "_newTitle": "Sample Pet Store App" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-title/openapi-3/change-title.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeTitleCommand", 4 | "_newTitle": "Updated Title" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-version/openapi-2/add-version.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeVersionCommand", 4 | "_newVersion": "1.0.1" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-version/openapi-2/change-version.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeVersionCommand", 4 | "_newVersion": "2.3.7" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-version/openapi-3/add-version.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeVersionCommand", 4 | "_newVersion": "1.0.1" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/change-version/openapi-3/change-version.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ChangeVersionCommand", 4 | "_newVersion": "2.3.7" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-child-schemas/openapi-3/delete-all-schemas.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Delete All Schemas API", 5 | "version": "1.0.0" 6 | }, 7 | "components": { 8 | "schemas": { 9 | "SampleDataType": { 10 | "description": "", 11 | "type": "object" 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-child-schemas/openapi-3/delete-all-schemas.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllChildSchemasCommand", 3 | "_schemaPath": "/components/schemas[SampleDataType]", 4 | "_childSchemaType": "anyOf" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-examples/openapi-3/delete-all-examples.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllExamplesCommand", 3 | "_oldExamples": {}, 4 | "_parentPath": "/paths[/]/get/responses[500]/content[application/json]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-extensions/openapi-3/delete-all-extensions.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | } 7 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-extensions/openapi-3/delete-all-extensions.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "x-foo": "bar", 8 | "x-bar": "baz", 9 | "x-int-property": 17, 10 | "x-object-property": { 11 | "prop1": 17, 12 | "prop2": true, 13 | "prop3": "ok" 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-extensions/openapi-3/delete-all-extensions.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllExtensionsCommand", 3 | "_parentPath": "/" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-headers/openapi-3/delete-all-headers-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllHeadersCommand", 3 | "_parentPath": "/paths[/foo]/get/responses[200]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-message-examples/asyncapi-2/delete-all-message-examples.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-message-examples/asyncapi-2/delete-all-message-examples.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllMessageExamplesCommand_Aai20", 3 | "_parentPath": "/channels[myChannel]/subscribe" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/asyncapi-2/delete-all-operations-single-operation.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/asyncapi-2/delete-all-operations-single-operation.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "summary": "Subscribe summary" 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/asyncapi-2/delete-all-operations-single-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllOperationsCommand_Aai20", 3 | "_parentPath": "/channels[myChannel]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/asyncapi-2/delete-all-operations.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/asyncapi-2/delete-all-operations.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllOperationsCommand_Aai20", 3 | "_parentPath": "/channels[myChannel]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/openapi-2/delete-all-operations.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllOperationsCommand", 3 | "_parentPath": "/paths[/pet/{petId}]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/openapi-3/delete-all-operations.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-operations/openapi-3/delete-all-operations.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllOperationsCommand", 3 | "_parentPath": "/paths[/foo]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-parameter-examples/openapi-3/delete-all-parameter-examples.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllParameterExamplesCommand", 3 | "_oldExamples": {}, 4 | "_parameterPath": "/paths[/test]/parameters[0]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-parameters/openapi-2/delete-all-parameters.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllParametersCommand", 3 | "_parentPath": "/paths[/pet/{petId}]/post", 4 | "_paramType": "formData" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-parameters/openapi-3/delete-all-parameters.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllParametersCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_paramType": "query" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-properties/asyncapi-2/delete-all-properties.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllPropertiesCommand", 3 | "_schemaPath": "/components/schemas[MySchema1]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-properties/openapi-2/delete-all-properties.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllPropertiesCommand", 4 | "_schemaPath": "/definitions[Order]" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-properties/openapi-3/delete-all-properties.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "schemas": { 5 | "MySchema1" : { 6 | "type": "object" 7 | }, 8 | "MySchema2": { 9 | "type": "string", 10 | "format": "email" 11 | }, 12 | "RefSchema":{ 13 | "$ref": "#/other/Ref" 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-properties/openapi-3/delete-all-properties.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllPropertiesCommand", 3 | "_schemaPath": "/components/schemas[MySchema1]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-responses/openapi-2/delete-all-responses.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllResponsesCommand", 3 | "_property": "responses", 4 | "_parentPath": "/paths[/pet]/put" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-responses/openapi-3/delete-all-responses.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllResponsesCommand", 3 | "_property": "responses", 4 | "_parentPath": "/paths[/]/get" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/asyncapi-2/delete-all-security-requirements.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllSecurityRequirementsCommand", 4 | "_parentPath" : "/servers[production]" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-2/delete-all-security-requirements.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllSecurityRequirementsCommand", 3 | "_parentPath": "/paths[/pet]/post" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements-op.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2" 8 | } 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements-op.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2", 8 | "security": [ 9 | { 10 | "Auth1": [], 11 | "Auth2": [ "s1", "s2", "s3" ] 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements-op.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllSecurityRequirementsCommand", 3 | "_parentPath": "/paths[/]/get" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | } 5 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "Auth1": [], 8 | "Auth2": [ "s1", "s2", "s3" ] 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-requirements/openapi-3/delete-all-security-requirements.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllSecurityRequirementsCommand", 3 | "_parentPath": "/" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-schemes/asyncapi-2/delete-all-security-schemes.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Asyncapi test", 5 | "version": "1.0.0" 6 | }, 7 | "components": { 8 | } 9 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-schemes/asyncapi-2/delete-all-security-schemes.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllSecuritySchemesCommand" 4 | } 5 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-schemes/openapi-2/delete-all-security-schemes.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllSecuritySchemesCommand" 3 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-schemes/openapi-3/delete-all-security-schemes.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | } 5 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-security-schemes/openapi-3/delete-all-security-schemes.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllSecuritySchemesCommand" 3 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/asyncapi-2/delete-all-servers.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myevents": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/asyncapi-2/delete-all-servers.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllServersCommand_Aai20" 3 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/openapi-3/delete-all-servers-document.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "parameters": [ 7 | { 8 | "name": "username", 9 | "in": "query", 10 | "description": "username to fetch", 11 | "required": true 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/openapi-3/delete-all-servers-document.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllServersCommand", 3 | "_parentPath": "/" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/openapi-3/delete-all-servers-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllServersCommand", 3 | "_parentPath": "/paths[/foo]/get" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/openapi-3/delete-all-servers-pathItem.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "required": true 8 | } 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-servers/openapi-3/delete-all-servers-pathItem.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllServersCommand", 3 | "_parentPath": "/paths[/foo]" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/asyncapi-2/delete-all-tags-msg.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllTagsCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe/message" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/asyncapi-2/delete-all-tags-op.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllTagsCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/openapi-2/delete-all-tags.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger":"2.0", 3 | "info":{ 4 | "description":"This is a sample server Petstore server via JSON.", 5 | "version":"1.0.0", 6 | "title":"Swagger Petstore (JSON)" 7 | }, 8 | "host":"petstore.swagger.io", 9 | "basePath":"/v2", 10 | "schemes":[ 11 | "http" 12 | ], 13 | "paths":{ 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/openapi-2/delete-all-tags.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteAllTagsCommand" 4 | } 5 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/openapi-3/delete-all-tags.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "info": { 4 | "title": "Simple OAI 3.0.0 API", 5 | "description": "A simple API using OpenAPI 3.0.0.", 6 | "version": "2.0.4" 7 | }, 8 | "paths": { 9 | } 10 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-all-tags/openapi-3/delete-all-tags.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteAllTagsCommand" 3 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-channel/asyncapi-2/delete-channel.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteChannelCommand", 4 | "_channel": "toRemove" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-child-schema/openapi-3/delete-child-schema.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteChildSchemaCommand", 4 | "_schemaPath": "/components/schemas[SampleDataType]/anyOf[2]", 5 | "_parentPath": "/components/schemas[SampleDataType]" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-contact/openapi-2/delete-contact.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteContactCommand", 4 | "_property" : "contact", 5 | "_parentPath" : "/info" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-contact/openapi-3/delete-contact-na.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteContactCommand", 4 | "_property" : "contact", 5 | "_parentPath" : "/info" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-contact/openapi-3/delete-contact.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteContactCommand", 4 | "_property" : "contact", 5 | "_parentPath" : "/info" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-example/openapi-2/delete-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteExampleCommand", 3 | "_exampleContentType": "application/json", 4 | "_responsePath": "/paths[/pet/findByStatus]/get/responses[200]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-example/openapi-3/delete-example-multiple.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteExampleCommand", 3 | "_exampleName": "foo", 4 | "_mediaTypePath": "/paths[/]/get/responses[200]/content[application/json]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-example/openapi-3/delete-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteExampleCommand", 3 | "_exampleName": "foo", 4 | "_mediaTypePath": "/paths[/]/get/responses[200]/content[application/json]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-extension/openapi-2/delete-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteExtensionCommand", 3 | "_parentPath": "/paths[/pet/findByStatus]/get", 4 | "_name": "x-existing-extension" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-extension/openapi-3/delete-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteExtensionCommand", 3 | "_parentPath": "/paths[/]/get", 4 | "_name": "x-existing-extension" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-header.openapi-3/delete-header-response-multiple.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteHeaderCommand", 3 | "_headerName": "X-RateLimit-Limit", 4 | "_parentPath": "/paths[/foo]/get/responses[200]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-header.openapi-3/delete-header-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteHeaderCommand", 3 | "_headerName": "X-RateLimit-Limit", 4 | "_parentPath": "/paths[/foo]/get/responses[200]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-license/openapi-2/delete-license.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteLicenseCommand", 3 | "_property": "license", 4 | "_parentPath": "/info" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-license/openapi-3/delete-license.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteLicenseCommand", 3 | "_property": "license", 4 | "_parentPath": "/info" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-media-type/openapi-3/delete-media-type-requestBody.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "content": { 8 | "application/json": { 9 | "schema": { 10 | "$ref": "$/components/schemas/Foo" 11 | } 12 | } 13 | } 14 | } 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-media-type/openapi-3/delete-media-type-requestBody.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteMediaTypeCommand", 3 | "_mediaTypeName": "multipart/mixed", 4 | "_mediaTypePath": "/paths[/foo]/get/requestBody/content[multipart/mixed]", 5 | "_parentPath": "/paths[/foo]/get/requestBody" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-media-type/openapi-3/delete-media-type-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteMediaTypeCommand", 3 | "_mediaTypeName": "application/json", 4 | "_mediaTypePath": "/paths[/foo]/get/responses[200]/content[application/json]", 5 | "_parentPath": "/paths[/foo]/get/responses[200]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-message-definition/asyncapi-2/delete-message-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteMessageDefinitionCommand", 4 | "_name": "toDelete" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-message-example/asyncapi-2/delete-message-example-exists.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteMessageExampleCommand_Aai20", 3 | "_exampleValue": "{ \"foo\": \"string\", \"bar\": true }", 4 | "_parentPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-message-example/asyncapi-2/delete-message-example-json.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteMessageExampleCommand_Aai20", 3 | "_exampleValue": { 4 | "foo": "string", 5 | "bar": true 6 | }, 7 | "_parentPath": "/channels[myChannel]/subscribe" 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-message-example/asyncapi-2/delete-message-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteMessageExampleCommand_Aai20", 3 | "_exampleValue": "{ \"foo\": \"string\", \"bar\": true }", 4 | "_parentPath": "/channels[myChannel]/subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-messagetrait-definition/asyncapi-2/delete-messagetrait-definition-multiple.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteMessageTraitDefinitionCommand", 4 | "_name": "toDelete" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-messagetrait-definition/asyncapi-2/delete-messagetrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteMessageTraitDefinitionCommand", 4 | "_name": "toDelete" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-oneof-message/asyncapi-2/delete-oneof-message.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteOneOfMessageCommand", 4 | "_oneOfIdc": 0, 5 | "_parentPath": "/channels[999testtest99]/publish/message" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operation/asyncapi-2/delete-operation.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operation/asyncapi-2/delete-operation.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "summary": "Subscribe summary" 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operation/asyncapi-2/delete-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteOperationCommand_Aai20", 3 | "_property": "subscribe", 4 | "_parentPath": "/channels[myChannel]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operation/openapi-2/delete-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteOperationCommand", 3 | "_property": "post", 4 | "_parentPath": "/paths[/pet]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operation/openapi-3/delete-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteOperationCommand", 3 | "_property": "get", 4 | "_parentPath": "/paths[/foo]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operationtrait-definition/asyncapi-2/delete-operationtrait-definition-multiple.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteOperationTraitDefinitionCommand", 4 | "_name": "toDelete" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-operationtrait-definition/asyncapi-2/delete-operationtrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteOperationTraitDefinitionCommand", 4 | "_name": "toDelete" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-parameter-example/openapi-3/delete-parameter-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteParameterExampleCommand", 3 | "_exampleName": "bar", 4 | "_parameterPath": "/paths[/test]/parameters[0]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-parameter/openapi-2/delete-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteParameterCommand", 4 | "_parameterPath": "/paths[/pet/{petId}]/post/parameters[2]", 5 | "_parentPath": "/paths[/pet/{petId}]/post" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-parameter/openapi-3/delete-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteParameterCommand", 3 | "_parameterPath": "/paths[/foo]/get/parameters[2]", 4 | "_parentPath": "/paths[/foo]/get" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-path/openapi-2/delete-path.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePathCommand", 3 | "_path": "/pet/findByStatus" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-path/openapi-3/delete-path.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePathCommand", 3 | "_path": "/foo" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/asyncapi-2/delete-property-required-multiple.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "baz", 4 | "_propertyPath": "/components/schemas[MySchema1]/properties[baz]", 5 | "_schemaPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/asyncapi-2/delete-property-required.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "baz", 4 | "_propertyPath": "/components/schemas[MySchema1]/properties[baz]", 5 | "_schemaPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/asyncapi-2/delete-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "foo", 4 | "_propertyPath": "/components/schemas[MySchema1]/properties[foo]", 5 | "_schemaPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/openapi-2/delete-property-required.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "petId", 4 | "_propertyPath": "/definitions[Order]/properties[petId]", 5 | "_schemaPath": "/definitions[Order]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/openapi-2/delete-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "petId", 4 | "_propertyPath": "/definitions[Order]/properties[petId]", 5 | "_schemaPath": "/definitions[Order]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/openapi-3/delete-property-required.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "address", 4 | "_propertyPath": "/components/schemas[MySchema1]/properties[address]", 5 | "_schemaPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-property/openapi-3/delete-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeletePropertyCommand", 3 | "_propertyName": "address", 4 | "_propertyPath": "/components/schemas[MySchema1]/properties[address]", 5 | "_schemaPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-request-body/openapi-3/delete-request-body.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteRequestBodyCommand", 3 | "_property": "requestBody", 4 | "_parentPath": "/paths[/v2]/put" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response-definition/openapi-2/delete-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "Error": { 5 | "description": "An error occurred." 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response-definition/openapi-2/delete-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteResponseDefinitionCommand", 3 | "_definitionName": "NotFound" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response-definition/openapi-3/delete-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "Error": { 6 | "description": "An error occurred." 7 | } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response-definition/openapi-3/delete-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteResponseDefinitionCommand", 3 | "_definitionName": "NotFound" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response/openapi-2/delete-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteResponseCommand", 3 | "_responseCode": "405", 4 | "_responsePath": "/paths[/pet]/post/responses[405]", 5 | "_responsesPath": "/paths[/pet]/post/responses" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-response/openapi-3/delete-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteResponseCommand", 3 | "_responseCode": "200", 4 | "_responsePath": "/paths[/foo]/get/responses[200]", 5 | "_responsesPath": "/paths[/foo]/get/responses" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-schema-definition/asyncapi-2/delete-schema-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "DeleteSchemaDefinitionCommand_Aai20 test", 5 | "version": "1.0.0" 6 | }, 7 | "components": {} 8 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-schema-definition/asyncapi-2/delete-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSchemaDefinitionCommand_Aai20", 3 | "_definitionName": "TestSchema" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-schema-definition/openapi-2/delete-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSchemaDefinitionCommand", 3 | "_definitionName": "Order" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-schema-definition/openapi-3/delete-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSchemaDefinitionCommand", 3 | "_definitionName": "MySchema2" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/asyncapi-2/delete-security-requirement-unmatched.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteSecurityRequirementCommand", 4 | "_parentPath" : "/servers/production", 5 | "_requirement": { 6 | "oauth2Scheme": [ 7 | "read:pets" 8 | ] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/asyncapi-2/delete-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteSecurityRequirementCommand", 4 | "_parentPath" : "/servers/production", 5 | "_requirement": { 6 | "oauth2Scheme": [ 7 | "write:pets" 8 | ] 9 | } 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-doc2.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "BasicAuth": [], 11 | "MyOAuth": [ "read", "write" ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-doc2.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "Auth1": [], 11 | "Auth2": [ "s1", "s2", "s3" ] 12 | }, 13 | { 14 | "BasicAuth": [], 15 | "MyOAuth": [ "read", "write" ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-doc2.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecurityRequirementCommand", 3 | "_parentPath": "/", 4 | "_requirement": { 5 | "Auth1": [], 6 | "Auth2": [ 7 | "s1", 8 | "s2", 9 | "s3" 10 | ] 11 | } 12 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-op.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2" 8 | } 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-op.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/": { 5 | "get": { 6 | "summary": "List API versions", 7 | "operationId": "listVersionsv2", 8 | "security": [ 9 | { 10 | "Auth1": [], 11 | "Auth2": [ "s1", "s2", "s3" ] 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement-op.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecurityRequirementCommand", 3 | "_parentPath": "/paths[/]/get", 4 | "_requirement": { 5 | "Auth1": [], 6 | "Auth2": [ 7 | "s1", 8 | "s2", 9 | "s3" 10 | ] 11 | } 12 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": {} 4 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "Auth1": [], 8 | "Auth2": [ "s1", "s2", "s3" ] 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-requirement/openapi-3/delete-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecurityRequirementCommand", 3 | "_parentPath": "/", 4 | "_requirement": { 5 | "Auth1": [], 6 | "Auth2": [ 7 | "s1", 8 | "s2", 9 | "s3" 10 | ] 11 | } 12 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-scheme/asyncapi-2/delete-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecuritySchemeCommand_Aai20", 3 | "_schemeName": "myScheme" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-scheme/openapi-2/delete-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecuritySchemeCommand", 3 | "_schemeName": "petstore_auth" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-security-scheme/openapi-3/delete-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteSecuritySchemeCommand", 3 | "_schemeName": "JWT" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-server/asyncapi-2/delete-server.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-server/asyncapi-2/delete-server.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteServerCommand_Aai20", 3 | "_serverName": "my_other_server" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-server/openapi-3/delete-server-document.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteServerCommand", 3 | "_serverUrl": "https://production.gigantic-server.com/v1", 4 | "_parentPath": "/" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-server/openapi-3/delete-server-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteServerCommand", 3 | "_serverUrl": "https://production.gigantic-server.com/v1", 4 | "_parentPath": "/paths[/foo]/get" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-server/openapi-3/delete-server-pathItem.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteServerCommand", 3 | "_serverUrl": "https://production.gigantic-server.com/v1", 4 | "_parentPath": "/paths[/foo]" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-tag/asyncapi-2/delete-tag-msg.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteTagCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe/message", 5 | "_tagName": "tag1" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-tag/asyncapi-2/delete-tag-op.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "DeleteTagCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe", 5 | "_tagName": "tag1" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-tag/openapi-2/delete-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteTagCommand", 3 | "_tagName": "store" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/delete-tag/openapi-3/delete-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "DeleteTagCommand", 3 | "_tagName": "tag2" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-channel/asyncapi-2/new-channel.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewChannelCommand", 4 | "_newChannel": "newChannel" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension-object.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "x-foo": "bar", 8 | "x-object": { 9 | "property1": 17, 10 | "property2": true, 11 | "property3": "hello world" 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension-object.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "x-foo": "bar" 8 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension-object.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewExtensionCommand", 3 | "_parentPath" : "/", 4 | "_name" : "x-object", 5 | "_value" : { 6 | "property1": 17, 7 | "property2": true, 8 | "property3": "hello world" 9 | } 10 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "x-foo": "bar", 8 | "x-bar": "baz" 9 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "x-foo": "bar" 8 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-extension/openapi-3/new-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewExtensionCommand", 3 | "_parentPath" : "/", 4 | "_name" : "x-bar", 5 | "_value" : "baz" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-header.openapi-3/new-header-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewHeaderCommand", 3 | "_nodePath": "/paths[/foo]/get/responses[200]", 4 | "_name": "X-RateLimit-Remaining" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-parameter.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "parameters": [ 7 | { 8 | "name": "username", 9 | "in": "query", 10 | "description": "username to fetch", 11 | "required": true 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewMediaTypeCommand", 3 | "_nodePath": "/paths[/foo]/get/parameters[0]", 4 | "_newMediaType": "application/json" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-requestBody.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "required": true, 8 | "content": { 9 | "application/json": {} 10 | } 11 | } 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-requestBody.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "required": true 8 | } 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-requestBody.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewMediaTypeCommand", 3 | "_nodePath": "/paths[/foo]/get/requestBody", 4 | "_newMediaType": "application/json" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-media-type/openapi-3/new-media-type-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewMediaTypeCommand", 3 | "_nodePath": "/paths[/foo]/get/responses[200]", 4 | "_newMediaType": "application/xml" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-message-definition/asyncapi-2/new-message-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewMessageDefinitionCommand", 4 | "_newName": "commonMessage", 5 | "_newDescription": "This message is holding common headers for Messages" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-message-definition/asyncapi-2/new-message-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewMessageDefinitionCommand", 4 | "_newName": "commonMessage" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-messagetrait-definition/asyncapi-2/new-messagetrait-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewMessageTraitDefinitionCommand", 4 | "_newName": "commonHeaders", 5 | "_newDescription": "This trait is holding common headers for Messages" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-messagetrait-definition/asyncapi-2/new-messagetrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewMessageTraitDefinitionCommand", 4 | "_newName": "commonHeaders" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operation/asyncapi-2/new-operation.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operation/asyncapi-2/new-operation.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operation/asyncapi-2/new-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewOperationCommand_Aai20", 3 | "_channel": "myChannel", 4 | "_opType": "subscribe" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operation/openapi-2/new-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewOperationCommand", 3 | "_path": "/pets", 4 | "_method": "put" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operation/openapi-3/new-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewOperationCommand", 3 | "_path": "/foo", 4 | "_method": "put" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operationtrait-definition/asyncapi-2/new-operationtrait-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewOperationTraitDefinitionCommand", 4 | "_newName": "commonProperties", 5 | "_newDescription": "Common Properties for Operations" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-operationtrait-definition/asyncapi-2/new-operationtrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewOperationTraitDefinitionCommand", 4 | "_newName": "commonProperties" 5 | } 6 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-2/new-param.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewParamCommand", 3 | "_parentPath": "/paths[/pets]/get", 4 | "_paramName": "newParameter", 5 | "_paramType": "query", 6 | "_description": null, 7 | "_newType": null, 8 | "_override": false 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-3/new-param-both.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewParamCommand", 4 | "_parentPath": "/paths[/foo]/get", 5 | "_paramName": "newParameter", 6 | "_paramType": "query", 7 | "_description": "Hello World.", 8 | "_newType": { 9 | "type": "array", 10 | "of": { 11 | "type": "string", 12 | "of": null 13 | }, 14 | "required": true 15 | }, 16 | "_override": false 17 | } 18 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-3/new-param-description.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewParamCommand", 4 | "_parentPath": "/paths[/foo]/get", 5 | "_paramName": "newParameter", 6 | "_paramType": "query", 7 | "_description": "An included description.", 8 | "_newType": null, 9 | "_override": false 10 | } 11 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-3/new-param-type.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewParamCommand", 4 | "_parentPath": "/paths[/foo]/get", 5 | "_paramName": "newParameter", 6 | "_paramType": "query", 7 | "_description": null, 8 | "_newType": { 9 | "type": "array", 10 | "of": { 11 | "type": "string", 12 | "of": null 13 | } 14 | }, 15 | "_override": false 16 | } 17 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-3/new-param.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewParamCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_paramName": "newParameter", 5 | "_paramType": "query", 6 | "_description": null, 7 | "_newType": null, 8 | "_override": false 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-param/openapi-3/override-param.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewParamCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_paramName": "username", 5 | "_paramType": "path", 6 | "_description": null, 7 | "_newType": null, 8 | "_override": true 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-path/openapi-2/new-path.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewPathCommand", 3 | "_newPath": "/newPath" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-path/openapi-3/new-path.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewPathCommand", 3 | "_newPath": "/newPath" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-request-body/openapi-2/new-request-body.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewRequestBodyCommand", 3 | "_operationPath": "/paths[/pets]/get" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-request-body/openapi-3/new-request-body.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewRequestBodyCommand", 3 | "_operationPath": "/paths[/foo]/get" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition-with-description.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "ExistingResponse": { 5 | "description": "The description of the existing response definition" 6 | }, 7 | "NewResponse": { 8 | "description": "Just a description of a new response." 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition-with-description.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "ExistingResponse": { 5 | "description": "The description of the existing response definition" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseDefinitionCommand", 3 | "_newDefinitionName": "NewResponse", 4 | "_newDefinitionDescription": "Just a description of a new response." 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "ExistingResponse": { 5 | "description": "The existing response." 6 | }, 7 | "NewResponse" : {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "ExistingResponse": { 5 | "description": "The existing response." 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-2/new-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseDefinitionCommand", 3 | "_newDefinitionName": "NewResponse" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition-with-description.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "MyResponse1" : { 6 | "description": "Hello world..." 7 | }, 8 | "MyResponse2":{ 9 | }, 10 | "NewResponse" : { 11 | "description": "Just a description of a new response." 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition-with-description.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "MyResponse1" : { 6 | "description": "Hello world..." 7 | }, 8 | "MyResponse2":{ 9 | } 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseDefinitionCommand", 3 | "_newDefinitionName": "NewResponse", 4 | "_newDefinitionDescription": "Just a description of a new response." 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "MyResponse1" : { 6 | "description": "Hello world..." 7 | }, 8 | "MyResponse2":{ 9 | }, 10 | "NewResponse" : { 11 | } 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "MyResponse1" : { 6 | "description": "Hello world..." 7 | }, 8 | "MyResponse2":{ 9 | } 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response-definition/openapi-3/new-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseDefinitionCommand", 3 | "_newDefinitionName": "NewResponse" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response/openapi-2/new-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseCommand", 3 | "_operationPath": "/paths[/pets]/get", 4 | "_statusCode": "200" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-response/openapi-3/new-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewResponseCommand", 3 | "_operationPath": "/paths[/foo]/get", 4 | "_statusCode": "200" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/asyncapi-2/new-schema-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand_Aai20", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": null, 5 | "_newDefinitionDescription": "Just a description of a new type." 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/asyncapi-2/new-schema-definition-with-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand_Aai20", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": { 5 | "name": "Jason Bourne", 6 | "age": 46, 7 | "email": "jbourne@example.com", 8 | "dob": "1971-04-15" 9 | } 10 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/asyncapi-2/new-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand_Aai20", 3 | "_newDefinitionName": "NewType" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-2/new-schema-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": null, 5 | "_newDefinitionDescription": "Just a description of a new type." 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-2/new-schema-definition-with-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": { 5 | "name": "Jason Bourne", 6 | "age": 46, 7 | "email": "jbourne@example.com", 8 | "dob": "1971-04-15", 9 | "type": null 10 | } 11 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-2/new-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-3/new-schema-definition-with-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": null, 5 | "_newDefinitionDescription": "Just a description of a new type." 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-3/new-schema-definition-with-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType", 4 | "_newDefinitionExample": { 5 | "name": "Jason Bourne", 6 | "age": 46, 7 | "email": "jbourne@example.com", 8 | "dob": "1971-04-15" 9 | } 10 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-definition/openapi-3/new-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaDefinitionCommand", 3 | "_newDefinitionName": "NewType" 4 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-property/asyncapi-2/new-schema-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaPropertyCommand_Aai20", 3 | "_schemaPath": "/components/schemas[MySchema1]", 4 | "_propertyName": "newProperty", 5 | "_newType": null 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-property/openapi-2/new-schema-property-description.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaPropertyCommand", 3 | "_schemaPath": "/definitions[Person]", 4 | "_propertyName": "newProperty", 5 | "_description": "Hello world.", 6 | "_newType": null 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-property/openapi-2/new-schema-property-type.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaPropertyCommand", 3 | "_schemaPath": "/definitions[Person]", 4 | "_propertyName": "newProperty", 5 | "_description": null, 6 | "_newType": { 7 | "type": "array", 8 | "of": { 9 | "type": "string", 10 | "of": null 11 | }, 12 | "required": true 13 | } 14 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-property/openapi-2/new-schema-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaPropertyCommand", 3 | "_schemaPath": "/definitions[Person]", 4 | "_propertyName": "newProperty", 5 | "_newType": null 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-schema-property/openapi-3/new-schema-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSchemaPropertyCommand", 3 | "_schemaPath": "/components/schemas[MySchema1]", 4 | "_propertyName": "newProperty", 5 | "_newType": null 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-security-scheme/asyncapi-2/new-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSecuritySchemeCommand_Aai20", 3 | "_scheme": { 4 | "type": "http", 5 | "scheme": "basic" 6 | }, 7 | "_schemeName": "myScheme" 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-security-scheme/openapi-2/new-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSecuritySchemeCommand", 3 | "_scheme": { 4 | "type": "apiKey", 5 | "name": "key", 6 | "in": "header" 7 | }, 8 | "_schemeName": "new_scheme" 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-security-scheme/openapi-3/new-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewSecuritySchemeCommand", 3 | "_scheme": { 4 | "type": "http", 5 | "scheme": "bearer", 6 | "bearerFormat": "JWT" 7 | }, 8 | "_schemeName": "NewScheme" 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/asyncapi-2/new-server-exists.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/asyncapi-2/new-server-exists.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/asyncapi-2/new-server-exists.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand_Aai20", 3 | "_serverName": "my_server", 4 | "_server": { 5 | "url": "kafka2.prod.example.com", 6 | "description": "my newer event railgun", 7 | "protocol": "kafka" 8 | } 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/asyncapi-2/new-server.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/asyncapi-2/new-server.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand_Aai20", 3 | "_serverName": "my_other_server", 4 | "_server": { 5 | "url": "kafka2.prod.example.com", 6 | "description": "my newer event railgun", 7 | "protocol": "kafka" 8 | } 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-document-exists.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand", 3 | "_server": { 4 | "url": "https://development.gigantic-server.com/v1", 5 | "description": "Development server" 6 | }, 7 | "_parentPath": null 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-document.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "parameters": [ 7 | { 8 | "name": "username", 9 | "in": "query", 10 | "description": "username to fetch", 11 | "required": true 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-document.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand", 3 | "_server": { 4 | "url": "https://development.gigantic-server.com/v1", 5 | "description": "Development server" 6 | }, 7 | "_parentPath": null 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-operation.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_server": { 5 | "url": "https://development.gigantic-server.com/v1", 6 | "description": "Development server" 7 | } 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-pathItem.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "required": true 8 | } 9 | }, 10 | "servers": [ 11 | { 12 | "url": "https://development.gigantic-server.com/v1", 13 | "description": "Development server" 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-pathItem.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "requestBody": { 7 | "required": true 8 | } 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-server/openapi-3/new-server-pathItem.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewServerCommand", 3 | "_parentPath": "/paths[/foo]", 4 | "_server": { 5 | "url": "https://development.gigantic-server.com/v1", 6 | "description": "Development server" 7 | } 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/asyncapi-2/new-tag-msg.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/asyncapi-2/new-tag-msg.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewTagCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe/message", 5 | "_tagName": "tag1", 6 | "_tagDescription": "desc1" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/asyncapi-2/new-tag-op.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "Blank API", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "myChannel": { 9 | "description": "This is myChannel description", 10 | "subscribe": { 11 | "message":{ 12 | "payload": {} 13 | } 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/asyncapi-2/new-tag-op.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewTagCommand_Aai20", 4 | "_nodePath": "/channels[myChannel]/subscribe", 5 | "_tagName": "tag1", 6 | "_tagDescription": "desc1" 7 | } 8 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-2/new-tag.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | }, 12 | { 13 | "name": "tag3", 14 | "description": "Tag 3 description" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-2/new-tag.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-2/new-tag.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "NewTagCommand", 4 | "_tagName": "tag3", 5 | "_tagDescription": "Tag 3 description" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-3/new-tag.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | }, 12 | { 13 | "name": "tag3", 14 | "description": "Tag 3 description" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-3/new-tag.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/new-tag/openapi-3/new-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "NewTagCommand", 3 | "_tagName": "tag3", 4 | "_tagDescription": "Tag 3 description" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-init-params.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/{userId}/signedin": { 9 | "parameters": { 10 | "userId": {} 11 | } 12 | } 13 | }, 14 | "components": { 15 | } 16 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-init-params.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": {} 9 | }, 10 | "components": { 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-init-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/signedin", 4 | "_newChannelName": "user/{userId}/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-remove-params.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": {} 9 | }, 10 | "components": { 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-remove-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/{userId}/signedin", 4 | "_newChannelName": "user/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-remove-some-params.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": { 9 | "parameters": { 10 | "dummy": {} 11 | }} 12 | }, 13 | "components": { 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-remove-some-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/{userId}/signedin", 4 | "_newChannelName": "user/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-shuffle-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "{someSource}/user/{userId}/signedin/{shouldBeRenamed}/{byeBye}", 4 | "_newChannelName": "{hasNewName}/user/{userId}/{someSource}/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-skip-conflict.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": {}, 9 | "takenName": {} 10 | }, 11 | "components": { 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-skip-conflict.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": {}, 9 | "takenName": {} 10 | }, 11 | "components": { 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-skip-conflict.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/signedin", 4 | "_newChannelName": "takenName" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-with-many-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/{userId}/a/{thingId}/b/{someId}/c/{blahId}/signedin", 4 | "_newChannelName": "userSomething/{otherKeyForUserId}/c/{secondKeyForUserId}/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-with-params.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/{userId}/signedin": { 9 | "parameters": { 10 | "userId": { 11 | "description": "Data to be passed on after rename" 12 | } 13 | } 14 | } 15 | }, 16 | "components": { 17 | } 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item-with-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/{userId}/signedin", 4 | "_newChannelName": "userSomething/{otherKeyForUserId}/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedin": { 9 | "parameters": { 10 | "dummy": {} 11 | } 12 | }, 13 | "other":{} 14 | }, 15 | "components": { 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "empty aai", 5 | "version": "1.0.0" 6 | }, 7 | "channels": { 8 | "user/signedup": { 9 | "parameters": { 10 | "dummy": {} 11 | } 12 | }, 13 | "other":{} 14 | }, 15 | "components": { 16 | } 17 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-channel-item/asyncapi-2/rename-channel-item.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameChannelItemCommand", 3 | "_oldChannelName": "user/signedup", 4 | "_newChannelName": "user/signedin" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-header/openapi-3/rename-header-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameHeaderCommand", 3 | "_parentPath": "/paths[/foo]/get/responses[200]", 4 | "_oldHeaderName": "X-RateLimit-Limit", 5 | "_newHeaderName": "X-RateLimit-Remaining" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-message-definition/asyncapi-2/rename-message-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "RenameMessageDefinitionCommand", 4 | "_oldName": "comonMessage", 5 | "_newName": "commonMessage" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-messagetrait-definition/asyncapi-2/rename-messagetrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "RenameMessageTraitDefinitionCommand", 4 | "_oldName": "comonHeaders", 5 | "_newName": "commonHeaders" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-operationtrait-definition/asyncapi-2/rename-operationtrait-definition.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "RenameOperationTraitDefinitionCommand", 4 | "_oldName": "comonProperties", 5 | "_newName": "commonProperties" 6 | } 7 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-2/refactor-operation-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "status", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/pet/findByStatus]/get" 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-2/refactor-path-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "status", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/pet/findByStatus]" 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-2/rename-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "status", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/pet/findByStatus]/get" 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-3/refactor-path-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "freeForm", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/foo]" 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-3/rename-parameter.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "freeForm", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/foo]/get" 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-parameter/openapi-3/rename-parameter.privates-commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameParameterCommand", 3 | "_oldParamName": "freeForm", 4 | "_newParamName": "newParamName", 5 | "_paramIn": "query", 6 | "_parentPath": "/paths[/foo]/get", 7 | "isOperation": false, 8 | "isPathItem": false 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-2/rename-path-item-with-both.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/examples/{exampleId}", 4 | "_newPath": "/samples/{sampleId}", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-2/rename-path-item-with-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/examples/{exampleId}", 4 | "_newPath": "/foos/{fooId}", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-2/rename-path-item-with-subPaths.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/examples", 4 | "_newPath": "/samples", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-2/rename-path-item.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/pet/findByStatus", 4 | "_newPath": "/pet/searchByStatus", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-3/rename-path-item-remove-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/widgets/{widgetId}/gizmos/{gizmoId}", 4 | "_newPath": "/resources/{resId}/justOne", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-3/rename-path-item-with-both.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/beers/{beerId}", 4 | "_newPath": "/brews/{brewType}", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-3/rename-path-item-with-params.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/resources/{resId}/beers/{beerId}", 4 | "_newPath": "/resources/{resId}/foos/{fooId}", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-3/rename-path-item-with-subPaths.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/beers", 4 | "_newPath": "/brews", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-path-item/openapi-3/rename-path-item.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePathItemCommand", 3 | "_oldPath": "/v2", 4 | "_newPath": "/v3", 5 | "_alsoRenameSubpaths": true 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-property/openapi-2/rename-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePropertyCommand", 3 | "_oldPropertyName": "name", 4 | "_newPropertyName": "newName", 5 | "_parentPath": "/definitions[Person]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-property/openapi-3/rename-property.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenamePropertyCommand", 3 | "_oldPropertyName": "name", 4 | "_newPropertyName": "newName", 5 | "_parentPath": "/components/schemas[MySchema1]" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-response-definition/openapi-2/rename-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameResponseDefinitionCommand", 3 | "_oldName": "Error", 4 | "_newName": "Failure", 5 | "_references": [] 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-response-definition/openapi-3/rename-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameResponseDefinitionCommand", 3 | "_oldName": "Error", 4 | "_newName": "Failure", 5 | "_references": [] 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-schema-definition/asyncapi-2/rename-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSchemaDefinitionCommand_Aai20", 3 | "_oldName": "Person", 4 | "_newName": "RealPerson", 5 | "_references": [], 6 | "_messageReferences": [] 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-schema-definition/openapi-2/rename-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSchemaDefinitionCommand", 3 | "_oldName": "Pet", 4 | "_newName": "Kangaroo", 5 | "_references": [], 6 | "_messageReferences": [] 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-schema-definition/openapi-3/rename-schema-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSchemaDefinitionCommand", 3 | "_oldName": "User", 4 | "_newName": "Dude", 5 | "_references": [], 6 | "_messageReferences": [] 7 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-security-scheme/asyncapi-2/rename-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSecuritySchemeCommand", 3 | "_oldSchemeName": "myApiScheme", 4 | "_newSchemeName": "myRenamedApiScheme" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-security-scheme/openapi-2/refactor-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSecuritySchemeCommand", 3 | "_oldSchemeName": "petstore_auth", 4 | "_newSchemeName": "custom_auth" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-security-scheme/openapi-2/rename-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSecuritySchemeCommand", 3 | "_oldSchemeName": "petstore_auth", 4 | "_newSchemeName": "renamed_auth" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-security-scheme/openapi-3/rename-security-scheme.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameSecuritySchemeCommand", 3 | "_oldSchemeName": "APIKey", 4 | "_newSchemeName": "CustomKey" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-server/asyncapi-2/rename-server-exists.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameServerCommand_Aai20", 3 | "_oldServerName": "my_server", 4 | "_newServerName": "my_taken_server" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-server/asyncapi-2/rename-server.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_renamed_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-server/asyncapi-2/rename-server.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi": "2.0.0", 3 | "info": { 4 | "title": "example", 5 | "version": "1.0.0" 6 | }, 7 | "servers": { 8 | "my_server": { 9 | "url": "kafka.prod.example.com", 10 | "description": "my event railgun", 11 | "protocol": "kafka" 12 | } 13 | }, 14 | "channels": { 15 | "myevents": {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-server/asyncapi-2/rename-server.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameServerCommand_Aai20", 3 | "_oldServerName": "my_server", 4 | "_newServerName": "my_renamed_server" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-2/refactor-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameTagDefinitionCommand", 3 | "_oldTag": "tag1", 4 | "_newTag": "newTag" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-2/rename-tag.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "tags" : [ 4 | { 5 | "name": "newTag", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-2/rename-tag.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-2/rename-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameTagDefinitionCommand", 3 | "_oldTag": "tag1", 4 | "_newTag": "newTag" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-3/refactor-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameTagDefinitionCommand", 3 | "_oldTag": "tag1", 4 | "_newTag": "newTag" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-3/rename-tag.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "tags" : [ 4 | { 5 | "name": "newTag", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-3/rename-tag.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/rename-tag-definition/openapi-3/rename-tag.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "RenameTagDefinitionCommand", 3 | "_oldTag": "tag1", 4 | "_newTag": "newTag" 5 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-operation/openapi-2/replace-operation.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "get": { 6 | "summary": "Do A Thing", 7 | "description": "Totally does a thing", 8 | "operationId": "doAThing", 9 | "produces": [ 10 | "application/json" 11 | ] 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-operation/openapi-3/replace-operation.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "summary": "Foo Resource", 6 | "description": "CRUD for Foos.", 7 | "get": { 8 | "summary": "Do A Thing", 9 | "description": "Totally does a thing", 10 | "operationId": "doAThing", 11 | "deprecated": true 12 | }, 13 | "post":{} 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-path-item/openapi-2/replace-path-item.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "put": { 6 | "summary": "Update Pet", 7 | "description": "Updates the pet.", 8 | "operationId": "updatePet", 9 | "consumes": [ 10 | "application/json" 11 | ], 12 | "deprecated": false 13 | } 14 | }, 15 | "/bar":{} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-response-definition/openapi-2/replace-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "NotFound": { 5 | "description": "The replaced content." 6 | }, 7 | "Error": { 8 | "description": "An error occurred." 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-response-definition/openapi-2/replace-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ReplaceResponseDefinitionCommand", 3 | "_nodePath": "/responses[NotFound]", 4 | "_new": { 5 | "description": "The replaced content." 6 | }, 7 | "_defName": "NotFound" 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-response-definition/openapi-3/replace-response-definition.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | "responses": { 5 | "NotFound": { 6 | "description": "The replaced content." 7 | }, 8 | "Error": { 9 | "description": "An error occurred." 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-response-definition/openapi-3/replace-response-definition.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "ReplaceResponseDefinitionCommand", 3 | "_nodePath": "/components/responses[NotFound]", 4 | "_new": { 5 | "description": "The replaced content." 6 | }, 7 | "_defName": "NotFound" 8 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-security-requirement/asyncapi-2/replace-security-requirement.commands.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type": "ReplaceSecurityRequirementCommand", 4 | "_parentPath" : "/servers/production", 5 | "_oldRequirement" : { 6 | "oauth2Scheme": [ 7 | "write:pets" 8 | ] 9 | }, 10 | "_newRequirement": { 11 | "oauth2Scheme": [ 12 | "read:pets" 13 | ] 14 | } 15 | } 16 | ] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-security-requirement/openapi-3/replace-security-requirement.after.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "BasicAuth": [], 11 | "MyOAuth": [ "read", "admin" ] 12 | }, 13 | { 14 | "Auth1": [], 15 | "Auth2": [ "s1", "s2", "s3" ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/replace-security-requirement/openapi-3/replace-security-requirement.before.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | }, 5 | "security": [ 6 | { 7 | "BasicAuth": [] 8 | }, 9 | { 10 | "BasicAuth": [], 11 | "MyOAuth": [ "read", "write" ] 12 | }, 13 | { 14 | "Auth1": [], 15 | "Auth2": [ "s1", "s2", "s3" ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-example/openapi-2/replace-example.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExampleCommand", 3 | "_parentPath": "/paths[/pet/{petId}]/get/responses[200]", 4 | "_newExample": { 5 | "foo": "bar", 6 | "hello": [ 7 | "world" 8 | ] 9 | }, 10 | "_nullExamples": false, 11 | "_newContentType": "application/json" 12 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-example/openapi-3/replace-example-requestBody.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExampleCommand", 3 | "_parentPath": "/paths[/foo]/get/requestBody/content[application/json]", 4 | "_newExample": { 5 | "foo": "bar", 6 | "hello": [ 7 | "world" 8 | ] 9 | } 10 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-example/openapi-3/set-example-response.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExampleCommand", 3 | "_parentPath": "/paths[/foo]/get/responses[200]/content[application/json]", 4 | "_newExample": { 5 | "foo": "bar", 6 | "hello": [ 7 | "world" 8 | ] 9 | } 10 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-example/openapi-3/set-exampleObject.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExampleCommand", 3 | "_parentPath": "/paths[/foo]/get/responses[200]/content[application/xml]", 4 | "_newExample": "GOES HERE", 5 | "_newExampleName": "list" 6 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-extension/openapi-2/replace-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExtensionCommand", 3 | "_parentPath": "/paths[/pet/{petId}]/get", 4 | "_name": "x-existing-extension", 5 | "_value": { 6 | "foo": "bar", 7 | "hello": [ 8 | "world" 9 | ] 10 | } 11 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-extension/openapi-2/set-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExtensionCommand", 3 | "_parentPath": "/paths[/pet/{petId}]/get", 4 | "_name": "x-zimbabwe", 5 | "_value": { 6 | "property1": "foo", 7 | "property2": "bar" 8 | } 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-extension/openapi-3/replace-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExtensionCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_name": "x-existing-extension", 5 | "_value": { 6 | "foo": "bar", 7 | "hello": [ 8 | "world" 9 | ] 10 | } 11 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/cmd/commands/set-extension/openapi-3/set-extension.commands.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "__type": "SetExtensionCommand", 3 | "_parentPath": "/paths[/foo]/get", 4 | "_name": "x-operation-extension", 5 | "_value": { 6 | "property1": "foo", 7 | "property2": "bar" 8 | } 9 | }] -------------------------------------------------------------------------------- /src/test/resources/fixtures/dereference/oai2/no-changes-1.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/dereference/oai2/no-changes-1.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/dereference/oai3/3-level-dereference.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "info": { 4 | "title": "X", 5 | "version": "0.0.1" 6 | }, 7 | "paths": { 8 | "/": {} 9 | }, 10 | "components": { 11 | "schemas": { 12 | "CalendarEvent": { 13 | "$ref": "apicurio:41205#/components/schemas/CalendarEvent" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/2.0/simple/simple-info-extraProperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1", 7 | "extra-property-1": "value", 8 | "extra-property-2": 17, 9 | "extra-property-3": [ 1, 2, 3, 4 ] 10 | }, 11 | "extra-root-property": true 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/2.0/simple/simple-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/2.0/simple/simplest.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/3.0/simple/simple-info-extraProperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "3.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 3.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1", 7 | "extra-property-1": "value", 8 | "extra-property-2": 17, 9 | "extra-property-3": [ 1, 2, 3, 4 ] 10 | }, 11 | "extra-root-property": true 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/3.0/simple/simple-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "3.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 3.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/asyncapi/3.0/simple/simplest.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "3.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/definitions/primitive.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "definitions" : { 4 | "Sample": { 5 | "type": "string", 6 | "format": "email" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/invalid-version.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "1.1" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/paths/paths-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "paths": { 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/paths/paths-externalDocs.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "get": { 6 | "summary": "List Pets", 7 | "description": "Returns all pets from the system that the user has access to", 8 | "externalDocs" : { 9 | "description" : "Some external docs", 10 | "url" : "http://example.org/docs" 11 | } 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/paths/paths-ref.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "$ref": "#/paths/foo" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/responses/spec-example-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "responses": { 4 | "NotFound": { 5 | "description": "Entity not found." 6 | }, 7 | "IllegalInput": { 8 | "description": "Illegal input for operation." 9 | }, 10 | "GeneralError": { 11 | "description": "General Error", 12 | "schema": { 13 | "$ref": "#/definitions/GeneralError" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/simple/simple-externalDocs.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "externalDocs" : { 4 | "description": "Find more info here", 5 | "url": "https://swagger.io" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/simple/simple-security.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "security" : [ 4 | { 5 | "api_key": [] 6 | }, 7 | { 8 | "api_key": [], 9 | "petstore_auth": [ 10 | "write:pets", 11 | "read:pets" 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/simple/simple-tags.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/2.0/simple/simplest.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/components/components-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "components": { 4 | } 5 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/components/components-ref-loops.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2", 3 | "components": { 4 | "responses": { 5 | "PetResponse1": { 6 | "$ref": "#/components/PetResponse2" 7 | }, 8 | "PetResponse2": { 9 | "$ref": "#/components/PetResponse1" 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/paths/paths-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths" : { 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/paths/paths-get-security-anon.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "security": [ 7 | {}, 8 | { 9 | "oauth": [ 10 | "write:pets", 11 | "read:pets" 12 | ] 13 | } 14 | ] 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/paths/paths-get-security.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/foo": { 5 | "get": { 6 | "security": [ 7 | { 8 | "api_key": [] 9 | }, 10 | { 11 | "petstore_auth": [ 12 | "write:pets", 13 | "read:pets" 14 | ] 15 | } 16 | ] 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/paths/paths-ref.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "paths": { 4 | "/pets": { 5 | "$ref": "#/paths/foo" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/simple/simple-externalDocs.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "externalDocs" : { 4 | "description": "Find more info here", 5 | "url": "https://swagger.io" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/simple/simple-security.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "security" : [ 4 | { 5 | "api_key": [] 6 | }, 7 | { 8 | "api_key": [], 9 | "petstore_auth": [ 10 | "write:pets", 11 | "read:pets" 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/simple/simple-tags.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0", 3 | "tags" : [ 4 | { 5 | "name": "tag1", 6 | "description": "Tag 1 operation" 7 | }, 8 | { 9 | "name": "tag2", 10 | "description": "Tag 2 operation" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/io/openapi/3.0/simple/simplest.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/asyncapi/2.0/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/asyncapi/2.0/info.json.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "AsyncAPI 2.0 App", 3 | "description": "This is a very simple AsyncAPI file.", 4 | "version": "1.0.1" 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/asyncapi/2.0/root.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/asyncapi/2.0/root.json.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/openapi/2.0/items-schemaList.json.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "properties": { 4 | "name": { 5 | "type": "string" 6 | }, 7 | "id": { 8 | "format": "int32", 9 | "type": "integer" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/openapi/3.0/additionalProperties.json.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "format": "date", 3 | "type": "object" 4 | } 5 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/paths/openapi/3.0/items.json.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "format": "date", 3 | "type": "string" 4 | } 5 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/definitions/primitive.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.3", 3 | "components": { 4 | "schemas": { 5 | "Sample": { 6 | "type": "string", 7 | "format": "email" 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/definitions/primitive.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "definitions" : { 4 | "Sample": { 5 | "type": "string", 6 | "format": "email" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-get-with-tags.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.3", 3 | "paths" : { 4 | "/pets": { 5 | "get": { 6 | "summary": "List Pets", 7 | "description": "Returns all pets from the system that the user has access to", 8 | "operationId": "listPets", 9 | "tags": [ 10 | "tag-1", "tag-2", "foo", "bar" 11 | ] 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-get-with-tags.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "get": { 6 | "summary": "List Pets", 7 | "description": "Returns all pets from the system that the user has access to", 8 | "operationId": "listPets", 9 | "tags": [ 10 | "tag-1", "tag-2", "foo", "bar" 11 | ] 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-get.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.3", 3 | "paths": { 4 | "/pets": { 5 | "get": { 6 | "summary": "List Pets", 7 | "description": "Returns all pets from the system that the user has access to", 8 | "operationId": "listPets", 9 | "deprecated": false 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-get.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "get": { 6 | "summary": "List Pets", 7 | "description": "Returns all pets from the system that the user has access to", 8 | "operationId": "listPets", 9 | "deprecated": false 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-ref.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.3", 3 | "paths" : { 4 | "/pets": { 5 | "$ref": "#/paths/foo" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/paths/paths-ref.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0", 3 | "paths" : { 4 | "/pets": { 5 | "$ref": "#/paths/foo" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simple-server-with-schemes.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.3", 3 | "servers": [ 4 | { 5 | "url": "{scheme}://petstore.swagger.io/v2", 6 | "variables": { 7 | "scheme": { 8 | "enum": [ "http", "https" ], 9 | "default": "http", 10 | "description": "The supported protocol schemes." 11 | } 12 | } 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simple-server-with-schemes.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "host": "petstore.swagger.io", 4 | "basePath": "/v2", 5 | "schemes": [ 6 | "http", "https" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simple-server.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.3", 3 | "servers": [ 4 | { 5 | "url": "http://petstore.swagger.io/v2" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simple-server.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "host": "petstore.swagger.io", 4 | "basePath": "/v2", 5 | "schemes": [ 6 | "http" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simplest.expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi" : "3.0.3" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/transformation/oai20-oai30/simple/simplest.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger" : "2.0" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/asyncapi/2.0/required-property-valid.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/asyncapi/2.0/required-property-valid.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/asyncapi/2.0/simple/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "description": "This is a very simple AsyncAPI file." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/asyncapi/2.0/simple/info.json.expected: -------------------------------------------------------------------------------- 1 | [INF-001] |medium| {/info->title} :: API is missing a title. 2 | [INF-002] |medium| {/info->version} :: API is missing a version. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/asyncapi/2.0/simple/valid-simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "asyncapi" : "2.0.0", 3 | "info" : { 4 | "title": "AsyncAPI 2.0 App", 5 | "description": "This is a very simple AsyncAPI file.", 6 | "version": "1.0.1" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/asyncapi/2.0/simple/valid-simple.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/asyncapi/2.0/simple/valid-simple.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/document-invalid-property-format.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "host": "http://petstore.swagger.io", 4 | "basePath": "foo/bar", 5 | "info": { 6 | "description": "Test", 7 | "version": "1.0.0", 8 | "title": "Invalid Property Format Test" 9 | }, 10 | "paths": { 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/document-invalid-property-format.json.expected: -------------------------------------------------------------------------------- 1 | [R-004] |medium| {/->host} :: Host not properly formatted - only the host name (and optionally port) should be specified. 2 | [R-005] |medium| {/->basePath} :: Base Path should being with a '/' character. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/document-required-properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger":"2.0", 3 | "host":"petstore.swagger.io" 4 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/document-required-properties.json.expected: -------------------------------------------------------------------------------- 1 | [R-002] |medium| {/->info} :: API is missing the 'info' property. 2 | [R-003] |medium| {/->paths} :: API is missing the 'paths' property. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/info-invalid-property-format.json.expected: -------------------------------------------------------------------------------- 1 | [CTC-002] |medium| {/info/contact->email} :: Contact Email is an incorrect format. 2 | [LIC-002] |medium| {/info/license->url} :: License URL is an incorrect format. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/info-required-properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "swagger": "2.0", 3 | "info": {}, 4 | "paths": {} 5 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/info-required-properties.json.expected: -------------------------------------------------------------------------------- 1 | [INF-001] |medium| {/info->title} :: API is missing a title. 2 | [INF-002] |medium| {/info->version} :: API is missing a version. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/japanese-characters.json.expected: -------------------------------------------------------------------------------- 1 | [PATH-005] |medium| {/paths[/num{}]->null} :: Path template "/num{}" is not valid. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/mutually-exclusive.json.expected: -------------------------------------------------------------------------------- 1 | [PATH-002] |medium| {/paths[/pet]/post->in} :: Operation may not have both Body and Form Data parameters. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/operation-id.json.expected: -------------------------------------------------------------------------------- 1 | [OP-008] |high| {/paths[/path]/post->operationId} :: Operation is missing a operation id. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/2.0/valid-pet-store.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/2.0/valid-pet-store.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/data-type-reference.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/3.0/data-type-reference.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/duplicate-path-param.json.expected: -------------------------------------------------------------------------------- 1 | [PAR-019] |medium| {/paths[/dupesWithinPathItemInlineAndRefCombo]/parameters[0]->in} :: Duplicate query parameter named 'status' found (parameters must be unique by name and location). 2 | [PAR-019] |medium| {/paths[/dupesWithinPathItemInlineAndRefCombo]/parameters[1]->in} :: Duplicate query parameter named 'status' found (parameters must be unique by name and location). -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/ignored-property-name.json.expected: -------------------------------------------------------------------------------- 1 | [PAR-021] |medium| {/paths[/pets]/get/parameters[2]->name} :: The "Authorization" header parameter will be ignored. 2 | [HEAD-008] |medium| {/paths[/pets]/get/responses[200]/content[multipart/form-data]/encoding[id]/headers[Content-Type]->null} :: The "Content-Type" header will be ignored. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/invalid-property-format.json.expected: -------------------------------------------------------------------------------- 1 | [INF-004] |medium| {/info->termsOfService} :: Terms of Service URL is an incorrect format. 2 | [CTC-001] |medium| {/info/contact->url} :: Contact URL is an incorrect format. 3 | [CTC-002] |medium| {/info/contact->email} :: Contact Email is an incorrect format. 4 | [LIC-002] |medium| {/info/license->url} :: License URL is an incorrect format. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/oauth-flow-scopes.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/3.0/oauth-flow-scopes.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/operation-id.json.expected: -------------------------------------------------------------------------------- 1 | [OP-008] |high| {/paths[/path]/post->operationId} :: Operation is missing a operation id. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/operation-properties.json.expected: -------------------------------------------------------------------------------- 1 | [OP-014] |high| {/paths[/test]/get->summary} :: Operation is missing a summary. 2 | [OP-015] |high| {/paths[/test]/delete->description} :: Operation is missing a description. 3 | [OP-016] |high| {/paths[/test]/delete->tags} :: Operation must have at least one tag. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/required-property-root.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.2" 3 | } -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/required-property-root.json.expected: -------------------------------------------------------------------------------- 1 | [R-002] |medium| {/->info} :: API is missing the 'info' property. 2 | [R-003] |medium| {/->paths} :: API is missing the 'paths' property. -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/unknown-properties.json.expected: -------------------------------------------------------------------------------- 1 | [UNKNOWN-001] |medium| {/info/license->unknown-license-property} :: An unexpected property "unknown-license-property" was found. Extension properties should begin with "x-". 2 | [UNKNOWN-001] |medium| {/components/schemas[Error]->unexpected-property-datatype} :: An unexpected property "unexpected-property-datatype" was found. Extension properties should begin with "x-". -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.0/valid-pet-store.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/3.0/valid-pet-store.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.1/issue-6612.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/3.1/issue-6612.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/3.1/multiple-schema-types.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/3.1/multiple-schema-types.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/issues/804/formData-params.json.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apicurio/apicurio-data-models/25e08d369fc6145125ef864dad898e0d5bc5f50e/src/test/resources/fixtures/validation/openapi/issues/804/formData-params.json.expected -------------------------------------------------------------------------------- /src/test/resources/fixtures/validation/openapi/issues/88/response-def-description.json.expected: -------------------------------------------------------------------------------- 1 | [RDEF-002] |medium| {/components/responses[MyResponse]->description} :: Response Definition 'MyResponse' is missing a description. --------------------------------------------------------------------------------