Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data type is missing when "type": [ "string", "number", "boolean" ] #20

Open
DrGo opened this issue Mar 21, 2020 · 0 comments
Open

data type is missing when "type": [ "string", "number", "boolean" ] #20

DrGo opened this issue Mar 21, 2020 · 0 comments

Comments

@DrGo
Copy link

DrGo commented Mar 21, 2020

input
{ "description": "JSON schema for CSL input data", "$schema": "http://json-schema.org/draft-03/schema#", "id": "https://github.com/citation-style-language/schema/raw/master/csl-data.json", "type": "object", "properties": { "family": { "type": "string" }, "given": { "type": "string" }, "dropping-particle": { "type": "string" }, "non-dropping-particle": { "type": "string" }, "suffix": { "type": "string" }, "comma-suffix": { "type": [ "string", "number", "boolean" ] }, "static-ordering": { "type": [ "string", "number", "boolean" ] }, "literal": { "type": "string" }, "parse-names": { "type": [ "string", "number", "boolean" ] } }, "additionalProperties": false }
output
`package main

// generated by "schematyper csl-data.json" -- DO NOT EDIT

// JSON schema for CSL input data
type cslData struct {
CommaSuffix json:"comma-suffix,omitempty"
DroppingParticle string json:"dropping-particle,omitempty"
Family string json:"family,omitempty"
Given string json:"given,omitempty"
Literal string json:"literal,omitempty"
NonDroppingParticle string json:"non-dropping-particle,omitempty"
ParseNames json:"parse-names,omitempty"
StaticOrdering json:"static-ordering,omitempty"
Suffix string json:"suffix,omitempty"
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant