Skip to main content

CreateApiSchemaRequest

Information about the API schema.

Properties

NameTypeRequiredDescription
typeCreateApiSchemaType1The schema's type.
filesCreateApiSchemaFiles1[]The list of files that are part of the schema.

CreateApiSchemaType1

The schema's type.

Properties

NameTypeRequiredDescription
PROTO2string"proto:2"
PROTO3string"proto:3"
GRAPHQLstring"graphql"
OPENAPI3_1string"openapi:3_1"
OPENAPI3string"openapi:3"
OPENAPI2string"openapi:2"
OPENAPI1string"openapi:1"
RAML1string"raml:1"
RAML0_8string"raml:0_8"
WSDL2string"wsdl:2"
WSDL1string"wsdl:1"
ASYNCAPI2string"asyncapi:2"

CreateApiSchemaFiles1

Properties

NameTypeRequiredDescription
pathstringThe schema's file path.
rootFilesRootInformation about the schema's root file.
contentstringThe schema file's stringified contents.

FilesRoot

Information about the schema's root file.

Properties

NameTypeRequiredDescription
enabledEnabledIf true, tag the file as the root file. The root tag is only allowed for protobuf specifications.

Enabled

If true, tag the file as the root file. The root tag is only allowed for protobuf specifications.

Properties

NameTypeRequiredDescription
TRUE_boolean"true"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →