# Functions
ExportOpenAPITypeToSchema exports open api v3 schema ref from the kcl type.
ExportOpenAPIV3Spec exports open api v3 spec of a kcl package.
ExportSwaggerV2Spec extracts the swagger v2 representation of a kcl package without the external dependencies in kcl.mod.
ExportSwaggerV2SpecString exports swagger v2 spec of a kcl package.
GenGo translate kcl schema type to go struct.
GenKcl translate other formats to kcl schema code.
GenProto translate kcl schema type to protobuf message.
GetKclOpenAPIType converts the kcl.KclType(the representation of Type in KCL API) to KclOpenAPIType(the representation of Type in KCL Open API).
No description provided by the author
Get all schema type mapping within the root path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsSchema returns true if the type is schema.
IsSchemaInstance returns true if the type is schema instance.
IsSchemaNamed returns true if the type is schema and the name is equal to the given name.
IsSchemaType returns true if the type is schema type.
No description provided by the author
No description provided by the author
Marshal returns a KCL representation of the Go value.
Marshal returns a TOML representation of the Go value.
MarshalYamlMapSliceToTOML convert an ordered yaml data to an ordered toml.
PackageName resolves the package name from the PkgPath and the PkgRoot of the type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SwaggerV2ToOpenAPIV3Spec converts swagger v2 spec to open api v3 spec.
TypeFields returns a list of fields.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
GenContext defines the context during the generation.
No description provided by the author
No description provided by the author
GenOpts is the user interface defines the doc generate options.
KclExample defines the example code snippet of the schema.
KclExtensions defines all the KCL specific extensions patched to OpenAPI.
KclModelImportInfo defines how to import the current type.
KclOpenAPIType defines the KCL representation of SchemaObject field in Swagger v2.0.
KclPackage contains package information of package metadata(such as name, version, description, ...) and exported models(such as schemas).
An additional field 'Name' is added to the original 'KclType'.
No description provided by the author
SpecInfo defines KCL package info.
SwaggerV2Spec defines KCL OpenAPI Spec based on Swagger v2.0.
No description provided by the author
No description provided by the author
XKclDecorator definition.
XKclModelType defines the `x-kcl-type` extension.
# Type aliases
No description provided by the author
No description provided by the author
Mode is the mode of kcl schema code generation.
SwaggerTypeName defines possible values of "type" field in Swagger v2.0 spec.
TypeFormat defines possible values of "format" field in Swagger v2.0 spec.
XKclDecorators defines the `x-kcl-decorators` extension.