Commit graph

340 commits

Author SHA1 Message Date
Yann Hamon
f5338b07f9
Validate JUnit output against Jenkins JUnit XSD (#134)
* Validate JUnit output against Jenkins JUnix XSD

* Add missing Jenkins JUnit XSD

* Add time to TestCase for #127
2022-10-16 13:52:04 +02: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
Yann Hamon
3cb76bc5e6 Update fixture file to use no hash function 2022-09-02 10:39:16 +02:00
John-Michael Mulesa
5cbbd1a898
Upgrade hash to sha256. (#126) 2022-09-02 10:28:07 +02:00
Thomas Güttler
321cc0ea1d
remove link to dead project (#125)
the old repo has not updates since two years. It looks dead.
2022-08-31 09:08:01 +02:00
hadar-co
5e63bc5ad7
add {{ .Group }} variable to schema location options (#120) 2022-07-16 14:13:17 +02:00
Bill Franklin
9a6fff13cb
Forbid duplicate keys in strict mode (#121)
* Forbid duplicate keys in strict mode

Prevents specifying duplicate keys using
UnmarshallStrict: https://pkg.go.dev/gopkg.in/yaml.v2#UnmarshalStrict

* Add acceptance tests for duplicated properties
2022-07-15 14:23:10 +02:00
Calle Pettersson
7bf1e01dec
fix: change flag parse error handling to return errors instead of exiting (#107)
* fix: change flag parse error handling to return errors instead of exiting

Having ExitOnError in combination with SetOutput to a buffer instead of
stdout/stderr means flags.Parse output is swallowed and kubeconform silently
exits directly with exit code 2 instead of returning the error.

Setting ContinueOnError instead returns the error, and writes usage help to
the buffer, so error handling code in main is reached.

* Add test for parsing incorrect flags

Co-authored-by: Yann Hamon <yann@mandragor.org>
2022-06-19 18:38:52 +02:00
Damian Kula
014cbf754f
Adds info about installation via built in Go package manger (#116) 2022-06-19 18:23:23 +02:00
Andrzej Theodorko
f8ab9ae49e
Fix grammar in README.md (#114) 2022-06-03 13:11:11 +02:00
Eyar Zilberman
b5f34caa70
add constructor to handle equal sign (=) (#104)
Equal sign (=) was not parsed properly by pyyaml.
Added constructor to parse equal sign as string.
Related issue: https://github.com/yannh/kubeconform/issues/103
2022-04-06 09:12:48 +02:00
Carlos Sanchez
932b35d71f
chore: print the url of failed download (#96) 2022-02-22 23:59:39 +01:00
Yann Hamon
c5f7348af8 remove accidentally commited binary 2022-02-07 01:20:38 +01:00
Yann Hamon
85b30f8c2a
Improve handling of cmdline errors (#91)
Improve handling of cmdline errors
2022-01-06 12:39:24 +01:00
Yann Hamon
607c90a0a9 Minor css updates 2021-12-20 00:43:36 +01:00
Yann Hamon
d10c9bde67 Update website 2021-12-19 23:46:04 +01:00
Yann Hamon
2b3139b1db Add cname to website 2021-12-19 22:57:50 +01:00
Yann Hamon
3a3d05b27c Publish site 2021-12-19 22:53:04 +01:00
Yann Hamon
6c1fa513e9 Fixes acceptance test with new TAP output 2021-12-19 01:15:31 +01:00
Yann Hamon
048ccf125e
Merge pull request #87 from eyarz/master
add hero image to readme
2021-12-18 23:51:01 +01:00
Yann Hamon
c32562e742
Merge pull request #88 from maxbrunet/feature/output-tap/qualified-name
feat(output/tap): Output qualified resource name
2021-12-18 23:49:27 +01:00
Maxime Brunet
ff2ab3d770
feat(output/tap): Output qualified resource name 2021-12-17 19:18:55 -08:00
Eyar Zilberman
e38ff8efd4
add horizontal line 2021-12-13 22:51:06 +02:00
Eyar Zilberman
836b6e5b14
set hero image width 2021-12-13 22:48:21 +02:00
Eyar Zilberman
fe79a7cfff
Merge branch 'yannh:master' into master 2021-12-13 22:45:35 +02:00
Yann Hamon
c1b3e93a75
Merge pull request #86 from PaytmLabs/hotfix/scripts/root-additionalProperties
scripts: Optionally disallow additionalProperties at the root
2021-12-13 00:03:38 +01:00
Maxime Brunet
30528c5671
scripts: Add tests for options 2021-12-12 11:44:09 -08:00
Maxime Brunet
67a73a9315
scripts: Optionally disallow additionalProperties at the root 2021-12-11 11:40:06 -08:00
Eyar Zilberman
c7894baed6
Update Readme.md 2021-11-18 14:02:43 +02:00
Yann Hamon
f2e47c3596
Merge pull request #83 from z0mbix/master
Add -v flag to output version
2021-11-16 18:21:53 +01:00
z0mbix
c3e6205f15
Move version to main package 2021-11-16 17:19:54 +00:00
z0mbix
9410471142
Update README 2021-11-16 15:33:04 +00:00
z0mbix
d63de52458
Add -v to output version number 2021-11-16 15:30:33 +00:00
Yann Hamon
d536a659bd Fix broken release notes 2021-09-27 01:15:38 +02:00
Yann Hamon
ea3c592d63 HTTP acceptance test for openapi2jsonschema 2021-09-26 23:27:03 +02:00
Yann Hamon
aebc298047
Merge pull request #78 from tarioch/patch-1
Add missing import urllib.request
2021-09-26 23:06:52 +02:00
Patrick Ruckstuhl
a30381c6aa
Add missing import urllib.request 2021-09-26 23:00:44 +02:00
Yann Hamon
ab4745ddf0 Small clean-up 2021-09-26 22:55:01 +02:00
Yann Hamon
b571b18f8d Rename acceptance tests for consistency 2021-09-26 18:00:36 +02:00
Yann Hamon
563106ede1
Merge pull request #76 from yannh/support-for-larger-files
Support for larger files
2021-09-26 17:49:44 +02:00
Yann Hamon
b5c823d6b5 Also read up to 256MB from stdin 2021-09-26 17:45:27 +02:00
Yann Hamon
4a8aace275 Add acceptance test 2021-09-26 17:40:58 +02:00
Yann Hamon
8bb87b9a63 Allow bufio.Scanner to resize buffer when reading large files 2021-09-26 17:27:20 +02:00
Yann Hamon
ff7da0f73b
Merge pull request #75 from yannh/openapi2jsonschema-tests
Add simple openapi2jsonschema unit tests
2021-09-26 17:04:04 +02:00
Yann Hamon
19be42b9a6 simple openapi2jsonschema tests 2021-09-26 17:02:34 +02:00
Yann Hamon
dcc77ac3a3
Merge pull request #72 from tarioch/feature/handle_items_in_openapi2jsonschema
Also support items elements in yaml
2021-09-26 14:07:52 +02:00
Yann Hamon
f8dcb19789
Merge pull request #64 from PaytmLabs/hotfix/scripts/versions-before-version
I added some _very_ basic regression test, which checks that the output I am currently getting for a single resource from the prometheus operator does not change. It's not perfect, but changes that do not break that test are unlikely to break for me.
2021-09-26 14:00:06 +02:00
Yann Hamon
72d648a5d1
Merge pull request #74 from yannh/add-regression-tests-openapi2jsonschema
Add regression tests openapi2jsonschema
2021-09-26 13:51:08 +02:00
Yann Hamon
468d42f556 Add simple regression test for openapi2jsonschema 2021-09-26 13:49:37 +02:00
Yann Hamon
dfd7a5a102 Add simple regression tests for openapi2jsonschema 2021-09-26 13:46:05 +02:00