Skip to content

Commit

Permalink
refactor: added schema comments to yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Feb 5, 2024
1 parent 4bf1fc4 commit df714f2
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ When you execute a template file, GTTP will interactively ask you to fill out th
The template is then parsed with the Go [text/template](https://pkg.go.dev/text/template) syntax.

```yaml
# $schema: https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
1 change: 1 addition & 0 deletions _examples/array/base/array.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: TextArray
type: text[]
Expand Down
1 change: 1 addition & 0 deletions _examples/boolean/base/boolean.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Consent
type: boolean
Expand Down
1 change: 1 addition & 0 deletions _examples/condition/base/condition.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: AddUser
type: boolean
Expand Down
1 change: 1 addition & 0 deletions _examples/multiselect/base/multiselect.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Order
type: multiselect
Expand Down
1 change: 1 addition & 0 deletions _examples/number/base/number.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Number
type: number
Expand Down
1 change: 1 addition & 0 deletions _examples/number/min-max/min-max.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Num1
type: number
Expand Down
1 change: 1 addition & 0 deletions _examples/section/base/section.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: This is a section
type: section
Expand Down
1 change: 1 addition & 0 deletions _examples/select/base/select.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Animal
type: select
Expand Down
1 change: 1 addition & 0 deletions _examples/structures/base/structures.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
structures:
person:
- name: Name
Expand Down
1 change: 1 addition & 0 deletions _examples/text/base/text.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
1 change: 1 addition & 0 deletions _examples/text/regex/regex.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down
1 change: 1 addition & 0 deletions testdata/must-fail/number/min-over-max.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Number
type: number
Expand Down
1 change: 1 addition & 0 deletions testdata/must-fail/text/value-does-not-match-regex.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down
1 change: 1 addition & 0 deletions testdata/must-fail/validation/no-template.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Test
type: text
1 change: 1 addition & 0 deletions testdata/must-parse/text/base.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Name
type: text
Expand Down
1 change: 1 addition & 0 deletions testdata/must-parse/text/value-matches-regex.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# $schema: https://gttp.dev/schema
variables:
- name: Text
type: text
Expand Down

0 comments on commit df714f2

Please sign in to comment.