Commit graph

50 commits

Author SHA1 Message Date
Yann Hamon
9f04fec268
Add tests for the HTTP loader (#325)
Add another test case, remove accidental double memory caching
2025-05-11 04:13:07 +02:00
Yann Hamon
31e9679c96
Update jsonschema library to v6 (#324) 2025-05-11 02:05:01 +02:00
Yann Hamon
df26febc54
Update go/goreleaser (#322) 2025-05-10 18:20:42 +02:00
Yann Hamon
43a2445cb4
Retry (#282)
* fix: use hashicorp/go-retryablehttp to retry failed schema downloads


---------

Co-authored-by: Carlos Sanchez <carlos@apache.org>
2024-07-30 23:22:45 +02:00
Yann Hamon
706cd56e87
Revert "fix: retry on download errors (#274)" (#279)
This reverts commit 50ce5f8ecb.
2024-07-29 10:37:43 +02:00
Carlos Sanchez
50ce5f8ecb
fix: retry on download errors (#274)
* Retry on download errors

---------

Co-authored-by: Yann Hamon <yann@mandragor.org>
2024-07-29 10:10:44 +02:00
Yann Hamon
d8f00a3a30
Update Golang to 1.21.4 (#245) 2023-11-18 18:31:34 +01:00
Yann Hamon
ee7c498580
Migrate to santhosh-tekuri/jsonschema (#168)
* Migrate to santhosh-tekuri/jsonschema
2023-01-23 19:22:20 +01:00
Yann Hamon
f68d6ec6ea
Add debug information to help understand failures finding schemas (#133)
* Add debug information to help understand failures finding schemas

* Add debug information to help understand failures finding schemas
2022-10-16 12:28:11 +02:00
hadar-co
5e63bc5ad7
add {{ .Group }} variable to schema location options (#120) 2022-07-16 14:13:17 +02:00
Carlos Sanchez
932b35d71f
chore: print the url of failed download (#96) 2022-02-22 23:59:39 +01:00
Yann Hamon
4e83800979 gofmt 2021-09-26 11:58:09 +02:00
Christian Brauchli
dee75355d0 FIX: enable http_proxy environment variable 2021-09-17 09:32:36 +02:00
Yann Hamon
3a697f3ce2 validate against master by default, not 1.18.0 2021-07-11 22:53:23 +02:00
Yann Hamon
b10927a052 Update Readme, add 'default' value for -schema-location parameter 2021-02-27 16:37:24 +01:00
Christoph Mertz
65968cf540 remove gosimple offences 2021-02-19 17:01:54 +01:00
Yann Hamon
128fcf993b fail early when cache folder does not exist 2021-01-02 11:57:52 +01:00
Yann Hamon
18927ddf75 cache schemas downloaded over HTTP 2021-01-01 15:49:18 +01:00
Yann Hamon
1a76217195 fix - do try following schema registries when schema not found in local registry 2020-12-29 19:16:28 +01:00
Yann Hamon
031f83cbde linting 2020-12-15 22:20:02 +01:00
Yann Hamon
43b5c5c152 add tests to DownloadSchema 2020-11-29 16:09:12 +01:00
Yann Hamon
cafdb09f6f comment 2020-11-15 20:25:16 +01:00
Yann Hamon
651d3b2c50 fail early when a broken -schema-location template is given 2020-11-15 20:23:37 +01:00
Yann Hamon
b33767a477 fix acc tests 2020-11-15 16:24:27 +01:00
Yann Hamon
4ae74305d1 Updated names for schema-location vars, added documentation, updated openapi2jsonschema 2020-11-15 16:19:49 +01:00
Yann Hamon
4b16128b75 Add comments to most exported functions/types 2020-11-08 22:35:17 +01:00
Yann Hamon
44710f9053 cache http client in http registry 2020-11-08 16:50:21 +01:00
Yann Hamon
9d7a79b253 renaming 2020-11-08 16:46:01 +01:00
Yann Hamon
49ad2fc375 make http part of registry class 2020-11-08 16:25:45 +01:00
Yann Hamon
45040c3fe2 rename HTTP error 2020-11-08 16:21:48 +01:00
Yann Hamon
ec56304efd add -insecure-skip-tls-verify 2020-11-08 13:06:21 +01:00
Yann Hamon
1bc9283240 refactor 2020-11-01 16:28:32 +01:00
Yann Hamon
b4995aa02c Support for CRDs 2020-10-17 15:35:41 +02:00
Yann Hamon
59c23325d3 replace -schema with -local-registry 2020-06-07 18:59:03 +02:00
Yann Hamon
d9a6468d09 add a few comments on exported vars 2020-06-06 18:42:44 +02:00
Yann Hamon
cdcacb080d more unit tests 2020-06-06 16:32:27 +02:00
Yann Hamon
8fed078b9e support schemas in YAML, added acceptance tests for parsing custom resources 2020-06-05 00:51:35 +02:00
Yann Hamon
f64ecad867 Add comments on some exported resources 2020-06-04 00:51:36 +02:00
Yann Hamon
8fc1df8d8b minor nits 2020-06-01 12:20:15 +02:00
Yann Hamon
c4bd7d0668 some linting simplifications 2020-05-31 19:29:30 +02:00
Yann Hamon
a1c2e9dc68 fix format string 2020-05-31 14:56:10 +02:00
Yann Hamon
b918da9c59 rework caching - less leak of goschema everywhere 2020-05-31 03:12:28 +02:00
Yann Hamon
8eb297d4c4 better logic mgmt in output plugins, go fmt 2020-05-31 02:10:19 +02:00
Yann Hamon
79d8ce3055 forgot to commit files 2020-05-31 01:09:53 +02:00
Yann Hamon
ef44c39ff2 be more explicit about caching of download failures 2020-05-31 01:09:05 +02:00
Yann Hamon
30a6fe69b1 cache Schema unmarshalling, cache schema download failures (WIP) 2020-05-30 21:40:54 +02:00
Yann Hamon
5f3504724f add support for local schemas 2020-05-30 18:28:04 +02:00
Yann Hamon
3c6d3e351c skipKinds + better error logging 2020-05-30 07:02:48 +02:00
Yann Hamon
96e35cb926 try to validate 2020-05-30 03:37:40 +02:00
Yann Hamon
fe33d14dc4 first commit 2020-05-30 02:44:13 +02:00