You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	fix: invalid jsonschema
closes https://github.com/goreleaser/goreleaser/issues/4511 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/generate.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/generate.yml
									
									
									
									
										vendored
									
									
								
							| @@ -24,12 +24,14 @@ jobs: | ||||
|           version: 3.x | ||||
|           repo-token: ${{ secrets.GITHUB_TOKEN }} | ||||
|       - run: "go install mvdan.cc/gofumpt@latest" | ||||
|       - run: "go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest" | ||||
|       - run: task docs:releases | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|       - run: task docs:generate | ||||
|       - run: task schema:generate | ||||
|       - run: task nix:licenses:generate | ||||
|       - run: task schema:validate | ||||
|       - uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5 | ||||
|         with: | ||||
|           commit_message: "chore: docs auto-update" | ||||
|   | ||||
| @@ -80,6 +80,13 @@ tasks: | ||||
|     generates: | ||||
|       - ./www/docs/static/schema.json | ||||
|  | ||||
|   schema:validate: | ||||
|     desc: Validate JSONSchema | ||||
|     cmds: | ||||
|       - jv ./www/docs/static/schema.json | ||||
|     sources: | ||||
|       - ./www/docs/static/schema.json | ||||
|  | ||||
|   docs:generate: | ||||
|     desc: Generate docs | ||||
|     cmds: | ||||
|   | ||||
| @@ -285,8 +285,8 @@ func (a NixDependency) JSONSchema() *jsonschema.Schema { | ||||
| 	reflector := jsonschema.Reflector{ | ||||
| 		ExpandedStruct: true, | ||||
| 	} | ||||
| 	type t NixDependency | ||||
| 	schema := reflector.Reflect(&t{}) | ||||
| 	type nixDependencyAlias NixDependency | ||||
| 	schema := reflector.Reflect(&nixDependencyAlias{}) | ||||
| 	return &jsonschema.Schema{ | ||||
| 		OneOf: []*jsonschema.Schema{ | ||||
| 			{ | ||||
| @@ -611,11 +611,11 @@ func (bh *Hook) UnmarshalYAML(unmarshal func(interface{}) error) error { | ||||
| } | ||||
|  | ||||
| func (bh Hook) JSONSchema() *jsonschema.Schema { | ||||
| 	type t Hook | ||||
| 	type hookAlias Hook | ||||
| 	reflector := jsonschema.Reflector{ | ||||
| 		ExpandedStruct: true, | ||||
| 	} | ||||
| 	schema := reflector.Reflect(&t{}) | ||||
| 	schema := reflector.Reflect(&hookAlias{}) | ||||
| 	return &jsonschema.Schema{ | ||||
| 		OneOf: []*jsonschema.Schema{ | ||||
| 			{ | ||||
| @@ -668,11 +668,11 @@ func (f *File) UnmarshalYAML(unmarshal func(interface{}) error) error { | ||||
| } | ||||
|  | ||||
| func (f File) JSONSchema() *jsonschema.Schema { | ||||
| 	type t File | ||||
| 	type fileAlias File | ||||
| 	reflector := jsonschema.Reflector{ | ||||
| 		ExpandedStruct: true, | ||||
| 	} | ||||
| 	schema := reflector.Reflect(&t{}) | ||||
| 	schema := reflector.Reflect(&fileAlias{}) | ||||
| 	return &jsonschema.Schema{ | ||||
| 		OneOf: []*jsonschema.Schema{ | ||||
| 			{ | ||||
|   | ||||
							
								
								
									
										6
									
								
								www/docs/static/schema.json
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								www/docs/static/schema.json
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -913,7 +913,7 @@ | ||||
| 					}, | ||||
| 					{ | ||||
| 						"$schema": "https://json-schema.org/draft/2020-12/schema", | ||||
| 						"$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", | ||||
| 						"$id": "https://github.com/goreleaser/goreleaser/pkg/config/file-alias", | ||||
| 						"$defs": { | ||||
| 							"FileInfo": { | ||||
| 								"properties": { | ||||
| @@ -1300,7 +1300,7 @@ | ||||
| 								}, | ||||
| 								{ | ||||
| 									"$schema": "https://json-schema.org/draft/2020-12/schema", | ||||
| 									"$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", | ||||
| 									"$id": "https://github.com/goreleaser/goreleaser/pkg/config/hook-alias", | ||||
| 									"properties": { | ||||
| 										"dir": { | ||||
| 											"type": "string" | ||||
| @@ -2089,7 +2089,7 @@ | ||||
| 					}, | ||||
| 					{ | ||||
| 						"$schema": "https://json-schema.org/draft/2020-12/schema", | ||||
| 						"$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", | ||||
| 						"$id": "https://github.com/goreleaser/goreleaser/pkg/config/nix-dependency-alias", | ||||
| 						"properties": { | ||||
| 							"name": { | ||||
| 								"type": "string" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user