An open API service indexing awesome lists of open source software.

https://github.com/ysmood/jschema

A lib to convert existing golang struct into json schema list.
https://github.com/ysmood/jschema

Last synced: 8 months ago
JSON representation

A lib to convert existing golang struct into json schema list.

Awesome Lists containing this project

README

          

# Overview

A lib to convert existing golang structs into json schema list.

Features:

- No need to modify the existing structs
- Support `anyOf` for interface typing
- Support custom type hijack
- Support easy modification of the generated schema
- Support enum [](https://github.com/ent/ent/blob/a792f429a659bf74debdabea1b27856daeb47d22/schema/field/field.go#L920-L923) type

## Usage

Read [example](examples_test.go) for more details.