-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from misberner/mi/custom-comment-lookup
Add a custom mechanism for looking up comments.
- Loading branch information
Showing
5 changed files
with
177 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
name: Test Go | ||
on: [push] | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
test: | ||
name: Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/invopop/jsonschema/examples/user", | ||
"$ref": "#/$defs/User", | ||
"$defs": { | ||
"NamedPets": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/Pet" | ||
}, | ||
"type": "object", | ||
"description": "NamedPets is a map of animal names to pets." | ||
}, | ||
"Pet": { | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"title": "Name", | ||
"description": "Name of the animal." | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"name" | ||
], | ||
"description": "Pet defines the user's fury friend." | ||
}, | ||
"Pets": { | ||
"items": { | ||
"$ref": "#/$defs/Pet" | ||
}, | ||
"type": "array", | ||
"description": "Pets is a collection of Pet objects." | ||
}, | ||
"Plant": { | ||
"properties": { | ||
"variant": { | ||
"type": "string", | ||
"title": "Variant", | ||
"description": "This comment will be used" | ||
}, | ||
"multicellular": { | ||
"type": "boolean", | ||
"title": "Multicellular", | ||
"description": "Multicellular is true if the plant is multicellular" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"variant" | ||
], | ||
"description": "Plant represents the plants the user might have and serves as a test of structs inside a `type` set." | ||
}, | ||
"User": { | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"description": "Field ID of Go type github.com/invopop/jsonschema/examples.User." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"maxLength": 20, | ||
"minLength": 1, | ||
"pattern": ".*", | ||
"title": "the name", | ||
"description": "this is a property", | ||
"default": "alex", | ||
"examples": [ | ||
"joe", | ||
"lucy" | ||
] | ||
}, | ||
"friends": { | ||
"items": { | ||
"type": "integer" | ||
}, | ||
"type": "array", | ||
"description": "list of IDs, omitted when empty" | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"description": "Field Tags of Go type github.com/invopop/jsonschema/examples.User." | ||
}, | ||
"pets": { | ||
"$ref": "#/$defs/Pets", | ||
"description": "Field Pets of Go type github.com/invopop/jsonschema/examples.User." | ||
}, | ||
"named_pets": { | ||
"$ref": "#/$defs/NamedPets", | ||
"description": "Field NamedPets of Go type github.com/invopop/jsonschema/examples.User." | ||
}, | ||
"plants": { | ||
"items": { | ||
"$ref": "#/$defs/Plant" | ||
}, | ||
"type": "array", | ||
"title": "Plants", | ||
"description": "Field Plants of Go type github.com/invopop/jsonschema/examples.User." | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"name", | ||
"pets", | ||
"named_pets", | ||
"plants" | ||
], | ||
"description": "Go type User, defined in package github.com/invopop/jsonschema/examples." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters