Skip to main content

dox_openapi 3.0.0-alpha.4 copy "dox_openapi: ^3.0.0-alpha.4" to clipboard
dox_openapi: ^3.0.0-alpha.4 copied to clipboard

Generate an OpenAPI 3.1 document (JSON and YAML) for a Dox app, and serve it with a docs page.

3.0.0-alpha.4 #

  • Version bump only, to match the other packages.

3.0.0-alpha.3 #

  • Version bump only, to match the other packages.

3.0.0-alpha.2 #

  • A request body with a file field (format: binary, also in a list) uses multipart/form-data instead of application/json, so the /docs page can send files. RouteDoc(bodyMediaType:) sets it by hand.
  • Needs Dart 3.13 or newer.
  • All dependencies updated to their latest versions.
  • DoxRouteAdapter reads preMiddleware and body from a route when it has them.
  • A Dox catch-all param {path*} and an optional param {id?} become {path} and {id} in the document.
  • OpenApiOperation.formRequest is removed (form requests are gone).
  • New OpenApiRegistry, OpenApiOperation and OpenApiRouteBinding: the docs that dox_builder finds in the code. OpenApiRegistry.find() matches them to a live route.
  • RouteDoc and ApiDoc.route() take deprecated.
  • OpenApiServer builds and encodes the document once, on the first call, and keeps it. Make a new OpenApiServer after you change the OpenApi.
  • OpenApi.yamlEmitter is now a public field.
  • /docs uses Scalar (@scalar/api-reference 1.75.1) by default. OpenApiServer(ui: DocsUi.swagger) gives Swagger UI. ScalarOptions sets the theme, dark mode, download button and proxy (off by default). The title and the config are escaped.
  • Swagger UI updated to 5.34.0.

3.0.0-alpha.1 #

  • First release.
  • Build an OpenAPI 3.1 document with OpenApi and ApiDoc.
  • Add undocumented Dox routes with DoxRouteAdapter.
  • Output as JSON and YAML, write files, serve /openapi.json, /openapi.yaml and /docs.
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisherdartondox.dev

Weekly Downloads

Generate an OpenAPI 3.1 document (JSON and YAML) for a Dox app, and serve it with a docs page.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

path

More

Packages that depend on dox_openapi