mapped_json_schema 0.0.1 copy "mapped_json_schema: ^0.0.1" to clipboard
mapped_json_schema: ^0.0.1 copied to clipboard

Highly customizable JSON Schema object model mapper.

example/lib/example.dart

// ignore: depend_on_referenced_packages
import 'package:json_schema/json_schema.dart';
import 'package:mapped_json_schema/mapped_json_schema.dart';

void main() {
  final parser = MappedJsonSchemaParser();
  final jsonSchema = JsonSchema.create(schema);
  final mappedJsonSchema = parser.parse(jsonSchema);

  print(mappedJsonSchema.properties);
}

const schema = '''
{
  "title": "Person",
  "properties": {
    "firstName": {
      "type": "string",
      "description": "The person's first name."
    },
    "lastName": {
      "type": "string",
      "description": "The person's last name."
    },
    "age": {
      "description": "Age in years which must be equal to or greater than zero.",
      "type": "integer",
      "minimum": 0
    }
  }
}
''';
3
likes
150
points
8
downloads

Publisher

verified publishermost.io

Weekly Downloads

Highly customizable JSON Schema object model mapper.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

json_schema

More

Packages that depend on mapped_json_schema