spectra_schema 2.0.0 copy "spectra_schema: ^2.0.0" to clipboard
spectra_schema: ^2.0.0 copied to clipboard

A powerful Dart code generator that transforms your data classes into JSON Schema, OpenAPI, and Protobuf specifications. Perfect for AI integrations and API documentation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add spectra_schema

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  spectra_schema: ^2.0.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:spectra_schema/builder.dart';
import 'package:spectra_schema/spectra.dart';
0
likes
150
points
2
downloads

Publisher

verified publishersylphx.com

Weekly Downloads

A powerful Dart code generator that transforms your data classes into JSON Schema, OpenAPI, and Protobuf specifications. Perfect for AI integrations and API documentation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, collection, freezed_annotation, json_annotation, meta, source_gen

More

Packages that depend on spectra_schema