omissis / go-jsonschema

A tool to generate Go data types from JSON Schema definitions.
MIT License
566 stars 90 forks source link

Does not generate anything for the GeoJson schema #187

Open matthelliwell2 opened 8 months ago

matthelliwell2 commented 8 months ago

I'm trying to generate structs from this schema https://[geojson.org/schema/GeoJSON.json](https://geojson.org/schema/GeoJSON.json but it isn't generating any code.

(See https://github.com/geojson/schema for details of what the schema actually is)

Command I run: go-jsonschema.exe --package api --only-models -v GeoJSON.json

Output:

// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.

package api

There are no errors or warnings.

I've experimented a bit and it looks like it looks like the program doesn't like the top level one-of.