{"modulePath":"github.com/cloudquery/codegen","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jsonschema\n\n## Functions\n\n```go\nfunc Generate(a any, options ...Option) ([]byte, error)\n```\nGenerate returns a formatted JSON schema for the input struct, according to the tags defined by [https://github.com/invopop/jsonschema](https://github.com/invopop/jsonschema)\n\n```go\nfunc GenerateIntoFile(a any, filePath string, options ...Option)\n```\n\n```go\nfunc Sanitize(sc *jsonschema.Schema) error\n```\n\n```go\nfunc TestJSONSchema(t *testing.T, schema string, cases []TestCase)\n```\n\n```go\nfunc WithRemovedKeys(t *testing.T, val any, keys ...string) string\n```\n\n## Types\n\n```go\ntype Option func(*jsonschema.Reflector)\n```\n\n```go\nfunc WithAddGoComments(base, path string) Option\n```\n\n```go\ntype TestCase struct {\n\tName         string\n\tSpec         string\n\tErr          bool\n\tErrorMessage string\n}\n```\n\n","path":"github.com/cloudquery/codegen/jsonschema","name":"jsonschema","synopsis":"","isRedistributable":true}
