swagger_to_dart library
Classes
- JsonFactory
- OpenApi
- OpenApiBaseClientGenerator
- OpenApiClientGenerator
- OpenApiComponents
- OpenApiContent
- OpenApiContentSchema
- OpenApiDartGenerator
- OpenApiInfo
- OpenApiModelGenerator
- OpenApiPath
- OpenApiPathMethod
- OpenApiPathMethodParameter
- OpenApiPathMethodRequestBody
- OpenApiPathMethodResponse
- OpenApiSchema
- OpenApiSchemaAnyOf
- OpenApiSchemaJsonConverter
- OpenApiSchemaOneOf
- OpenApiSchemaOneOfDiscriminator
- OpenApiSchemaRef
- OpenApiSchemas
- OpenApiSchemaType
- OpenApiServer
- PubspecYaml
- Recase
- Recase for handling file names and class names
- SwaggerToDartConfig
- SwaggerToDartYaml
Functions
-
commentLine(
String line) → String -
convertOpenApiAnyOfToDartType(
OpenApiSchemaAnyOf value, SwaggerToDartConfig config) → String -
generateOpenApiOneOfToDartType(
String key, OpenApiSchemaOneOf model, SwaggerToDartConfig config) → String -
modelToUnionFreezedClass(
{required String filename, required String className, required OpenApiModel model, required Map< String, OpenApiSchema> properties, required SwaggerToDartConfig config}) → String -
readOpenApiFile(
SwaggerToDartConfig config) → OpenApi
Typedefs
- OneOfModel = ({String key, String type, String unionName})
-
OpenApiModel
= MapEntry<
String, OpenApiSchemas> -
OpenApiPathMethodParameters
= List<
OpenApiPathMethodParameter> -
OpenApiPathMethodResponses
= Map<
String, OpenApiPathMethodResponse> -
OpenApiPathMethodTags
= List<
String> -
OpenApiPaths
= Map<
String, OpenApiPath> - "paths": {}