How to use the apicurio-data-models.DocumentType.openapi3 function in apicurio-data-models

To help you get started, we’ve selected a few apicurio-data-models examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Apicurio / apicurio-studio / front-end / studio / src / app / pages / settings / validation / _components / profile-editor.component.ts View on Github external
ruleVersionName(docType: DocumentType): string {
        if (docType == DocumentType.openapi2) {
            return "OpenAPI 2.0";
        }
        if (docType == DocumentType.openapi3) {
            return "OpenAPI 3.x";
        }
        if (docType == DocumentType.asyncapi2) {
            return "AsyncAPI 2.x";
        }
    }