Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork github.com/go-openapi/{spec,validate,errors,strfmt} #211

Merged
merged 664 commits into from
Nov 5, 2020
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Sep 28, 2017

  1. Merge pull request kubernetes#33 from morlay/master

    marshal unmarshal item of parameter with vendorExtensible
    casualjim authored Sep 28, 2017
    Configuration menu
    Copy the full SHA
    48c2a71 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2017

  1. ref resolution

    keramix committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    00fbf1c View commit details
    Browse the repository at this point in the history
  2. remove debug artifact

    keramix committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    78d12de View commit details
    Browse the repository at this point in the history
  3. added tests

    keramix committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    4762da7 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2017

  1. Configuration menu
    Copy the full SHA
    d9e0070 View commit details
    Browse the repository at this point in the history
  2. solve recursive issue

    keramix committed Oct 17, 2017
    Configuration menu
    Copy the full SHA
    778dc9b View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2017

  1. Merge pull request kubernetes#35 from kreamyx/ref-resolution

    Reference Resolution
    casualjim authored Oct 19, 2017
    Configuration menu
    Copy the full SHA
    84b5bee View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2017

  1. Fix panic when json.Number value is in a string field

    Ivan Mikushin authored and casualjim committed Oct 20, 2017
    Configuration menu
    Copy the full SHA
    e291569 View commit details
    Browse the repository at this point in the history
  2. Add the test case causing the (fixed) panic

    Ivan Mikushin authored and casualjim committed Oct 20, 2017
    Configuration menu
    Copy the full SHA
    4566af4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e8b25c4 View commit details
    Browse the repository at this point in the history
  4. added tests

    keramix authored and casualjim committed Oct 20, 2017
    Configuration menu
    Copy the full SHA
    b6cfc35 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2017

  1. Configuration menu
    Copy the full SHA
    e9896c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2017

  1. Configuration menu
    Copy the full SHA
    eef1d9a View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#37 from ethantkoenig/example

    Add Example field to SimpleSchema
    casualjim authored Nov 5, 2017
    Configuration menu
    Copy the full SHA
    a4fa957 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2017

  1. Fix panic for nil schema

    When the input schema is nil, `NewSchemaValidator`
    will return a nil `*SchemaValidator`. This nil
    `*SchemaValidator` is passed to `Validate`, which
    panics when `s.validators` is called.
    nikhita authored and casualjim committed Nov 6, 2017
    Configuration menu
    Copy the full SHA
    32c2d07 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2017

  1. Configuration menu
    Copy the full SHA
    a762d5d View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2017

  1. allow a property name to be items

    keramix authored and casualjim committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    bed0b99 View commit details
    Browse the repository at this point in the history
  2. remove debug artefact

    keramix authored and casualjim committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    9ca207c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a52193a View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2017

  1. Configuration menu
    Copy the full SHA
    d509235 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2017

  1. Configuration menu
    Copy the full SHA
    58f1853 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#39 from databus23/patch-1

    Don't drop empty arrays of operations security definitions
    casualjim authored Nov 27, 2017
    Configuration menu
    Copy the full SHA
    bfb48d3 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2017

  1. Avoid null value when serializing operations

    This fixes a regression introduced by kubernetes#39.
    Turns out security: null breaks the validator as it expected either no field at all or an array.
    
    OperatioProperties now have a custom marshaller that ensures that:
    1. empty slices are preserved as empty arrays in JSON
    2. if Security is unset/nil the key is omitted in JSON
    databus23 committed Nov 29, 2017
    Configuration menu
    Copy the full SHA
    967b480 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#40 from databus23/regression-issue-39

    Avoid null value when serializing operations
    casualjim authored Nov 29, 2017
    Configuration menu
    Copy the full SHA
    5a4a1e9 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2017

  1. reference resolution (kubernetes#38)

    * remove unnecessary debug logs
    
    * allow trailing slash
    
    * use strings.TrimRight
    
    * intermediate commit
    
    * a commit that passes the validation tests
    
    * remove refmodifier
    
    * remove comments for easier review
    
    * fixed tests
    
    * remove unnecessary debug messages
    
    * remove some previously commented code
    keramix authored and casualjim committed Dec 4, 2017
    Configuration menu
    Copy the full SHA
    65a3c60 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2017

  1. Configuration menu
    Copy the full SHA
    4a3d261 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2017

  1. fixing paths for windows (kubernetes#42)

    * fixing paths for windows
    
    * remove debugging artifacts
    keramix authored and casualjim committed Dec 6, 2017
    Configuration menu
    Copy the full SHA
    0173894 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2017

  1. Consistently check if RelativeBase is empty

    Fixes kubernetes#43
    
    Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
    hypnoglow committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    ae13823 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#44 from hypnoglow/43-relative-base-checks

    Consistently check if RelativeBase is empty
    casualjim authored Dec 18, 2017
    Configuration menu
    Copy the full SHA
    aa90e7c View commit details
    Browse the repository at this point in the history
  3. Fix expandSchema when basePath is empty

    Fixes kubernetes#45
    
    Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
    hypnoglow committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    6ef9882 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2017

  1. Merge pull request kubernetes#46 from hypnoglow/45-fix-expand-schema-…

    …with-empty-basepath
    
    Fix expandSchema when basePath is empty
    casualjim authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    06b88aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    803abef View commit details
    Browse the repository at this point in the history
  3. Merge pull request kubernetes#48 from CiscoM31/master

    47-Delete temporary files before program termination
    casualjim authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    0d19bc5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e41dd92 View commit details
    Browse the repository at this point in the history
  5. Merge pull request kubernetes#49 from go-openapi/revert-48-master

    Revert "47-Delete temporary files before program termination"
    casualjim authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    5fb63ac View commit details
    Browse the repository at this point in the history
  6. clean up temp files

    keramix committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    7857ce9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    84511ac View commit details
    Browse the repository at this point in the history
  8. Merge pull request kubernetes#50 from kreamyx/clean-up

    clean up temp files
    casualjim authored Dec 19, 2017
    Configuration menu
    Copy the full SHA
    fa03337 View commit details
    Browse the repository at this point in the history
  9. update json schema fixtures

    casualjim committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    32db5cd View commit details
    Browse the repository at this point in the history
  10. The dashes in UUIDs are optional.

    gregmarr authored and casualjim committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    a764d2e View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2017

  1. Configuration menu
    Copy the full SHA
    245bafe View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#19 from krnkl/18-date-validation

    Fixed isDate validation; added unittests
    casualjim authored Dec 22, 2017
    Configuration menu
    Copy the full SHA
    4dd3d30 View commit details
    Browse the repository at this point in the history
  3. 44 FIX - Improve spec validation messages (kubernetes#42)

    * Initial commit. Do not merge
    
    * Good enough. UT perhaps borderline with default 10min timeout on my machine...
    
    * Fixed FailNow() exception. Removed unused loop in code
    
    * Externalized expected messages for UT in yaml. Trying to reproduce CI pb
    
    * Skipped from CI: long running test MessageQualityContinueOnErrors_Issue44
    
    * Skip another message validation UT...
    
    * Skipped 2 more long running UT
    
    * Bump and check if spec pkg still broken
    
    * Bump to CI
    
    * More UT. Arg in test to skip/pass long running tests
    
    * Cleaned up un-necessary files in ./fixtures/go-swagger copied from go-swagger/go-swagger
    
    * +UT for hasDuplicate() (never used in code). BTW this method should probably be removed. It looks like it is obsolete and superseded by values.go:UniqueItems()
    
    * set mutex on regexp cache
    
    * Fix mutex w/ panic testcase on mustCompileRegexp
    fredbi authored and casualjim committed Dec 22, 2017
    Configuration menu
    Copy the full SHA
    0e805b1 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2017

  1. fix kubernetes#10 - add error factor must be positive (kubernetes#11)

    * fix kubernetes#10 - add error factor must be positive
    
    * fixed UT for new message
    fredbi authored and casualjim committed Dec 26, 2017
    Configuration menu
    Copy the full SHA
    7bcb96a View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2018

  1. Validate examples. Refactoring of validate pkg. (kubernetes#60)

    * Validate examples. Refactoring of validate pkg.
    
    * Enable travis changes. Clean-up duplicated fixtures.
    fredbi authored and casualjim committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    fa47bbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7d02fc View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. Merge pull request kubernetes#62 from fredbi/53-enhance-message-catalog

    53 enhance message catalog
    casualjim authored Jan 11, 2018
    Configuration menu
    Copy the full SHA
    9b59475 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2018

  1. - Don't write root schema to disk.

    - When ref has a fragment only, or is pointing to root and root is nil then resolve against the root
    - can expand schema without a base path
    pytlesk4 committed Jan 30, 2018
    Configuration menu
    Copy the full SHA
    6bff943 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35e5534 View commit details
    Browse the repository at this point in the history
  3. Merge pull request kubernetes#54 from stoplightio/fix-expand-schema

    - Don't write root schema to disk.
    casualjim authored Jan 30, 2018
    Configuration menu
    Copy the full SHA
    8ed76de View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2018

  1. Merge pull request kubernetes#64 from stoplightio/master

    Fix TestSchemaValidator_Panic
    casualjim authored Jan 31, 2018
    Configuration menu
    Copy the full SHA
    9999dd7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f38c53 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18002ed View commit details
    Browse the repository at this point in the history
  4. Added default validation for headers

    fredbi authored and casualjim committed Jan 31, 2018
    Configuration menu
    Copy the full SHA
    9129a28 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cccc148 View commit details
    Browse the repository at this point in the history
  6. Merge pull request kubernetes#55 from stoplightio/httpRelativeBase

    relative base can be a http url for expanding a spec
    casualjim authored Jan 31, 2018
    Configuration menu
    Copy the full SHA
    f3499b5 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2018

  1. Configuration menu
    Copy the full SHA
    4f91803 View commit details
    Browse the repository at this point in the history
  2. - [x] Fixed panic case whenever a $ref is declared as sibling of resp…

    …onse.
    
          Detect and report the case.
    - [x] Sync'ed list of formats in type.go type switch
    - [x] Added more tests on formats to extend json-schema test suite with all supported formats in strfmt
    - [x] Added more tests on default values checks, with all formats in strfmt
    fredbi authored and casualjim committed Feb 2, 2018
    Configuration menu
    Copy the full SHA
    2a09d72 View commit details
    Browse the repository at this point in the history
  3. Merge pull request kubernetes#21 from fredbi/doc-update

    Doc work: README, godoc and linting
    casualjim authored Feb 2, 2018
    Configuration menu
    Copy the full SHA
    2a209b0 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2018

  1. Configuration menu
    Copy the full SHA
    7f951f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d761f0 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2018

  1. Merge pull request kubernetes#24 from fredbi/strfmt-extends-ut-dates-…

    …and-times
    
    Extended unit tests coverage on date, datetime and duration
    casualjim authored Feb 5, 2018
    Configuration menu
    Copy the full SHA
    6d1a47f View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2018

  1. added exported versions of the expandResponse and the expandParameter…

    … functions to be used by the validate package
    keramix committed Feb 7, 2018
    Configuration menu
    Copy the full SHA
    c4e71bf View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#57 from kreamyx/expansion-export

    added exported versions of expandResponse() and expandParameter()
    casualjim authored Feb 7, 2018
    Configuration menu
    Copy the full SHA
    81ece4e View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2018

  1. normalize cache key for root in ExpandSchema

    the cache is queried by normalized key.
    but in ExpandSchema(), root was stored with un-normalized key.
    
    this causes trouble on Windows which have drive letter as upper case in
    absolute path.  when normalize this absolute, drive letter is converted
    to lower case.  and it causes cache miss and ExpandSchema() failure.
    koron committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    ce2166c View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#58 from koron/normalize-drive-letter-wi…

    …ndows
    
    normalize cache key for root in ExpandSchema
    casualjim authored Feb 9, 2018
    Configuration menu
    Copy the full SHA
    e5cac01 View commit details
    Browse the repository at this point in the history
  3. Fixes kubernetes#75

    fredbi authored and casualjim committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    d5d4826 View commit details
    Browse the repository at this point in the history
  4. Better test coverage

    fredbi authored and casualjim committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    19a5938 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2018

  1. - fix expand response, path items, and parameters

    	- will expand responses, path items, and parameters recursively
    	- supports base paths for responses, path items, and parameters
    pytlesk4 committed Feb 12, 2018
    Configuration menu
    Copy the full SHA
    41de52f View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#59 from stoplightio/fix-response-exansion

    fix expand response, path items, and parameters
    casualjim authored Feb 12, 2018
    Configuration menu
    Copy the full SHA
    a7c6967 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2018

  1. Configuration menu
    Copy the full SHA
    7ede853 View commit details
    Browse the repository at this point in the history
  2. - if ref is equal to the current ref for a response, parameter or pat…

    …h item then don't expand again.
    pytlesk4 committed Feb 13, 2018
    Configuration menu
    Copy the full SHA
    b7cbfa8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request kubernetes#60 from go-openapi/all-circular-refs

    Hanlde circular refs for responses, parameters and path items
    casualjim authored Feb 13, 2018
    Configuration menu
    Copy the full SHA
    7a3d901 View commit details
    Browse the repository at this point in the history
  4. - run long running tests in parallel

    pytlesk4 authored and casualjim committed Feb 13, 2018
    Configuration menu
    Copy the full SHA
    1ff04bd View commit details
    Browse the repository at this point in the history
  5. improve performance of schema deserialize

    and add some benchmarks. This is a bottleneck for the kubernetes build.
    The fix works by caching the deserialization of the full schema into a
    map. We were doing this three times. Now we only do it once.
    
    Before:
    
    BenchmarkSchemaUnmarshal-12
            50000            321498 ns/op           86325 B/op       1400 allocs/op
    
    After:
    
    BenchmarkSchemaUnmarshal-12
           100000            131877 ns/op           46183 B/op        535 allocs/op
    mikedanese authored and casualjim committed Feb 13, 2018
    Configuration menu
    Copy the full SHA
    1de3e05 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2018

  1. Fix hang on recursive schemas when checking example of default values.

    This solves regression with issue go-swagger/go-swagger#1341
    fredbi authored and casualjim committed Feb 22, 2018
    Configuration menu
    Copy the full SHA
    1846887 View commit details
    Browse the repository at this point in the history
  2. Added fixtures for non-regression

    fredbi authored and casualjim committed Feb 22, 2018
    Configuration menu
    Copy the full SHA
    180bba5 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2018

  1. absPath() windows fix

    mtfelian authored and casualjim committed Mar 2, 2018
    Configuration menu
    Copy the full SHA
    fe19c0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f284a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    410b67e View commit details
    Browse the repository at this point in the history
  4. fix case no url fragment

    mtfelian authored and casualjim committed Mar 2, 2018
    Configuration menu
    Copy the full SHA
    d8000b5 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2018

  1. Fix str->bson function usages

    tylerb committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    d62f4e6 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2018

  1. Merge pull request kubernetes#25 from outdoorsy/master

    Fix str->bson function usages
    casualjim authored Mar 18, 2018
    Configuration menu
    Copy the full SHA
    6ba3155 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2018

  1. Configuration menu
    Copy the full SHA
    e62278c View commit details
    Browse the repository at this point in the history
  2. defaulting: add benchmark

    sttts committed Mar 19, 2018
    Configuration menu
    Copy the full SHA
    c7c5d5c View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2018

  1. - fixes kubernetes#65

    pytlesk4 committed Mar 22, 2018
    Configuration menu
    Copy the full SHA
    b1a574a View commit details
    Browse the repository at this point in the history
  2. - remove dead code

    pytlesk4 committed Mar 22, 2018
    Configuration menu
    Copy the full SHA
    66589c1 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2018

  1. Merge pull request kubernetes#70 from go-openapi/transitive-refs

    Support Transitive Refs
    casualjim authored Mar 23, 2018
    Configuration menu
    Copy the full SHA
    a309226 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2018

  1. Configuration menu
    Copy the full SHA
    f7d3cf6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#71 from go-openapi/transitiveResolverLo…

    …calRefCheck
    
    Only change the resolver for transitive refs
    casualjim authored Mar 26, 2018
    Configuration menu
    Copy the full SHA
    9acd888 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2018

  1. Handle null uuids when deserializing

     - When deserializing UUIDs, allow null values in the json. This results
     in creating Zero UUID instead of failing deserialization.
    
    Github Issue: go-openapi/strfmt#26
    
    Signed-off-by: Prem Ramanathan <premram@google.com>
    Prem Ramanathan committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    6e21b58 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#27 from fieryorc/pr/26-uuid-null

    Handle null uuids when deserializing
    casualjim authored Apr 4, 2018
    Configuration menu
    Copy the full SHA
    257eae8 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2018

  1. - fix spelling

    pytlesk4 committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    18bafbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    370d9e0 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2018

  1. Handle null dates when deserializing

    When deserializing, ignore null dates instead of failing.
    This makes null values semantically equivalent to missing field
    (undefined).
    
    Signed-off-by: Prem Ramanathan <premram@google.com>
    Prem Ramanathan committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    67468bf View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#28 from fieryorc/cr/26-fix_null_date

    Handle null dates when deserializing
    casualjim authored Apr 7, 2018
    Configuration menu
    Copy the full SHA
    4818084 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2018

  1. Configuration menu
    Copy the full SHA
    94e900b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    deac891 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    563c6e5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request kubernetes#81 from sttts/sttts-orthogonal-defaulting

    Orthogonal defaulting and new pruning algorithm
    casualjim authored Apr 13, 2018
    Configuration menu
    Copy the full SHA
    a6c59cf View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2018

  1. update jsonschema draft4

    casualjim committed Apr 15, 2018
    Configuration menu
    Copy the full SHA
    68d51af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bcff419 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2018

  1. Add runtime integration test

    sttts committed Apr 16, 2018
    Configuration menu
    Copy the full SHA
    ed99db2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17d85e3 View commit details
    Browse the repository at this point in the history
  3. Clarify post-algorithm inputs

    sttts committed Apr 16, 2018
    Configuration menu
    Copy the full SHA
    1788db6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request kubernetes#86 from sttts/sttts-reflect-slices

    Allow typed slices via reflection
    casualjim authored Apr 16, 2018
    Configuration menu
    Copy the full SHA
    659e09d View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2018

  1. Fix regexp cache race issue

    The original implementation allows for read to happen without acquiring lock.
    This leads to data race when read and write happen concurrently.
    
    Although tempting, first implementation used sync.Map, which optimize for a map that's used as cache concurrently.
    Later changed it back to Mutex for support of go 1.8 as sync.Map is introduced in go 1.9
    
    Signed-off-by: Victor Xian Wang <victor.xianwang@gmail.com>
    Victor Xian Wang committed Apr 22, 2018
    Configuration menu
    Copy the full SHA
    64288d1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#88 from victorxw/87-fix-regexp-cache-race

    fix race in `reDict` when reading from regexp cache
    fredbi authored Apr 22, 2018
    Configuration menu
    Copy the full SHA
    f8f9c59 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2018

  1. Fix debug logger side effects

    A previous improvement in signing the package name with debug log entries
    did actually pollute the global logger settings.
    
    Now fixed with a private debug logger for this package.
    fredbi committed May 2, 2018
    Configuration menu
    Copy the full SHA
    5a75475 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#90 from fredbi/fix-debug-logger

    Fix debug logger side effects
    casualjim authored May 2, 2018
    Configuration menu
    Copy the full SHA
    e943f4b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c803615 View commit details
    Browse the repository at this point in the history
  4. Merge pull request kubernetes#91 from sttts/sttts-fix-defaulter-plus-…

    …test
    
    Fix defaulting post-algorithm
    casualjim authored May 2, 2018
    Configuration menu
    Copy the full SHA
    9286f6d View commit details
    Browse the repository at this point in the history

Commits on May 15, 2018

  1. - linting

    - more UT
    - guards against nil error/empty CompositeError
    fredbi committed May 15, 2018
    Configuration menu
    Copy the full SHA
    41e8bbe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2b2bef View commit details
    Browse the repository at this point in the history

Commits on May 22, 2018

  1. upgrade CI with go 1.8 and 1.9

    Added 1.7
    fredbi committed May 22, 2018
    Configuration menu
    Copy the full SHA
    a866211 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2018

  1. Configuration menu
    Copy the full SHA
    8da38e2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#94 from jerome-laforge/master

    Avoid lock when regexp's cache is hot.
    casualjim authored Jun 9, 2018
    Configuration menu
    Copy the full SHA
    9ce4aba View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2018

  1. Configuration menu
    Copy the full SHA
    f6c557a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2be454c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d543b1a View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2018

  1. Merge pull request kubernetes#95 from jerome-laforge/master

    Remove unnecessary code duplication
    casualjim authored Jun 11, 2018
    Configuration menu
    Copy the full SHA
    b0a3ed6 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2018

  1. * Some linting

    * Added goreport card badge
    * Added golangCI badge
    * Added .golangci.yml config (with settings copied from go-swagger)
    fredbi committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    58e1f50 View commit details
    Browse the repository at this point in the history
  2. Linting

    UT covers changes
    
    * gofmt -s -w (not bindata.go)
    * added goreport card badge
    * added golangCI badge and .golangci.yml
    fredbi committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    93213da View commit details
    Browse the repository at this point in the history
  3. Linting

    * Some (minor) linting and mispell fix
    * Added goreport card and golangCI badge
    * Configured golangci.yml
    fredbi committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    6410a8a View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2018

  1. Configuration menu
    Copy the full SHA
    49a17f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d51702 View commit details
    Browse the repository at this point in the history
  3. Merge pull request kubernetes#68 from fredbi/travis-update-go-8-9

    upgrade CI with go 1.8 and 1.9
    casualjim authored Jul 3, 2018
    Configuration menu
    Copy the full SHA
    16284f9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    913ee05 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a6e517 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2018

  1. Relocate relative $ref in response and param schema

    - Contributes to go-swagger/go-swagger#1429
    
    This fixes the case when SkipSchema:true, there are remote $ref in
    in schema for params and responses declared themselves with $ref (!)
    fredbi committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    f9ebe9c View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2018

  1. Hang when expanding circular $ref

    * Fixes kubernetes#76 (absolute path left behind in resolved circular $ref)
    * Fixes kubernetes#74 (isCircular no more checks on basePath!="")
    * Contributes kubernetes#75 (hang is solved, but the (always correct) expanded result may differ from one run to another)
    * Contributes go-swagger/go-swagger#957 (hang on circular spec)
    
    No other way to pass golangci than disabling some linters
    fredbi committed Jul 7, 2018
    Configuration menu
    Copy the full SHA
    af4c70f View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2018

  1. Merge pull request kubernetes#78 from fredbi/fix-remote-skip-schemas

    Relocate relative $ref in response and param schema
    casualjim authored Jul 8, 2018
    Configuration menu
    Copy the full SHA
    8b2cc60 View commit details
    Browse the repository at this point in the history
  2. Hang when expanding circular $ref

    * Fixes kubernetes#76 (absolute path left behind in resolved circular $ref)
    * Fixes kubernetes#74 (isCircular no more checks on basePath!="")
    * Contributes kubernetes#75 (hang is solved, but the (always correct) expanded result may differ from one run to another)
    * Contributes go-swagger/go-swagger#957 (hang on circular spec)
    
    No other way to pass golangci than disabling some linters
    fredbi authored and casualjim committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    b79fccf View commit details
    Browse the repository at this point in the history
  3. Revert "Hang when expanding circular $ref"

    This reverts commit b79fccf.
    casualjim committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    ac0b6b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2018

  1. - change basepath when encountering a transitive ref

    - fix denormalizing a file ref, doesn't remove #
    pytlesk4 committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    035942d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e1e397 View commit details
    Browse the repository at this point in the history
  3. * Fixed transitiveResolver (change root)

    * Fixed denormalizeFileRef() : more cases, depending on type of URI
    * More testcases
    * Tested against current master for analysis, validate and go-swagger
    fredbi committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    70ef9ff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e2e66a1 View commit details
    Browse the repository at this point in the history
  5. Added fixture for kubernetes#69

    fredbi committed Jul 9, 2018
    Configuration menu
    Copy the full SHA
    08971c5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    64080af View commit details
    Browse the repository at this point in the history
  7. Merge pull request kubernetes#81 from go-openapi/fix-circular

    WIP: Fix circular
    fredbi authored Jul 9, 2018
    Configuration menu
    Copy the full SHA
    90cb622 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2018

  1. - handle transitive refs for responses/parameters

    - don't prematurely add a parentRef when expanding a response/parameter
    pytlesk4 committed Jul 10, 2018
    Configuration menu
    Copy the full SHA
    2d9ee49 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#82 from go-openapi/circularRespParamsFix

    Handle circular refs for responses/parameters schemas.
    pytlesk4 authored Jul 10, 2018
    Configuration menu
    Copy the full SHA
    bce47c9 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2018

  1. * Added option to expand circular $ref with absolute path

    This option is selected by default when expanding with a root schema
    instead of a BasePath
    
    * Added ExpandResponseWithRoot() and ExpandParameterWithRoot() to cover the validate use case
    
    * Fixed relative path issue in ExpandResponse() and ExpandParameter() (failed to resolve $ref when resolved
    in another location than .)
    
    * Contributes go-swagger/go-swagge#1614
    * Contributes go-swagger/go-swagger#1621
    fredbi committed Jul 28, 2018
    Configuration menu
    Copy the full SHA
    837d3d5 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2018

  1. Merge pull request kubernetes#83 from fredbi/fix-circular-absolute

    optional absolute path in circular $ref
    casualjim authored Aug 1, 2018
    Configuration menu
    Copy the full SHA
    384415f View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2018

  1. Fixes with remote and cyclical $ref

    * Fixes hang on cyclical $ref in responses or body params (required go-openapi/spec update)
    * Fixes errors when validating a spec with a relative path other than current dir (occured with examples or default validation)
    
    * Systematically fully expands responses and params, which produces some extra messages
    * Supports response default/example validations when schema provided as root (no RelativePath)
    * Added more test cases for remote $ref and cyclical $ref
    
    * Contributes go-swagger/go-swagger#1614
    * Contributes go-swagger/go-swgger#1621
    
    * Removed line length linter4
    * Fixed race condition in parallelized unit test
    fredbi committed Aug 3, 2018
    Configuration menu
    Copy the full SHA
    109e4ba View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#98 from fredbi/expand-with-base

    WIP: Expand with base
    casualjim authored Aug 3, 2018
    Configuration menu
    Copy the full SHA
    4f81262 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2018

  1. Configuration menu
    Copy the full SHA
    72cdde7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#100 from fredbi/fix-unit-test

    Fixed undue warnings w/race in unit test
    casualjim authored Aug 9, 2018
    Configuration menu
    Copy the full SHA
    7c19119 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2018

  1. update travis yml

    casualjim committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    eed2e94 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2018

  1. use go 1.11 in travis

    Signed-off-by: Ivan Porto Carrero <>
    Ivan Porto Carrero committed Aug 25, 2018
    Configuration menu
    Copy the full SHA
    ffd6e7d View commit details
    Browse the repository at this point in the history
  2. use go 1.11 in travis

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Aug 25, 2018
    Configuration menu
    Copy the full SHA
    f1468ac View commit details
    Browse the repository at this point in the history
  3. use go 1.11 in travis

    Signed-off-by: Ivan Porto Carrero <>
    Ivan Porto Carrero committed Aug 25, 2018
    Configuration menu
    Copy the full SHA
    6292e8b View commit details
    Browse the repository at this point in the history
  4. use go 1.11 in travis

    Signed-off-by: Ivan Porto Carrero <>
    Ivan Porto Carrero committed Aug 25, 2018
    Configuration menu
    Copy the full SHA
    e0648ff View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2018

  1. Default error code can be changed externally

    When the error Code cannot be used as an HTTP code, use a variable
    instead of 422 fixed code so the user can set it accordingly to its
    API policy.
    
    Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
    maxatome committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    214ef8a View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#15 from maxatome/defaultHTTPCode

    Default error code can be changed externally
    casualjim authored Aug 27, 2018
    Configuration menu
    Copy the full SHA
    87bb653 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2018

  1. Completed test for ServeError with nil Error, as discussed in kuberne…

    …tes#13
    
    Fixes kubernetes#13
    
    Added golangci and go report card badges
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Sep 3, 2018
    Configuration menu
    Copy the full SHA
    41df026 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2018

  1. Configuration menu
    Copy the full SHA
    04228a9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#31 from jerome-laforge/master

    kubernetes#30 github.com/go-mgo/mgo is no longer maintained
    casualjim authored Sep 10, 2018
    Configuration menu
    Copy the full SHA
    7761141 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2018

  1. Merge pull request kubernetes#16 from fredbi/serve-nil-error

    Completed test for ServeError with nil Error, as discussed in kubernetes#13
    casualjim authored Sep 26, 2018
    Configuration menu
    Copy the full SHA
    1801eed View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2018

  1. add go.mod and go.sum

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 7, 2018
    Configuration menu
    Copy the full SHA
    d9664f9 View commit details
    Browse the repository at this point in the history
  2. add go.mod and go.sum

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 7, 2018
    Configuration menu
    Copy the full SHA
    35fe473 View commit details
    Browse the repository at this point in the history
  3. add go.mod and go.sum

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 7, 2018
    Configuration menu
    Copy the full SHA
    5bae59e View commit details
    Browse the repository at this point in the history
  4. add go.mod and go.sum

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 7, 2018
    Configuration menu
    Copy the full SHA
    d2eab7d View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2018

  1. use an RFC 5322 address parser for email addresses

    contributes to go-swagger/go-swagger#1519
    
    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    5e0adf9 View commit details
    Browse the repository at this point in the history
  2. adds a test with some unusual email addresses

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    44323b0 View commit details
    Browse the repository at this point in the history
  3. ensure the address is not just a name

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    4571a0b View commit details
    Browse the repository at this point in the history
  4. adds finns failing address

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    d2c6911 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2018

  1. Merge pull request kubernetes#33 from go-openapi/fix-goswagger-1519

    Use a more competent email address parser
    casualjim authored Oct 21, 2018
    Configuration menu
    Copy the full SHA
    edab999 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2018

  1. Linting

    * Comply with golangci-lint linting rules
    * Refactored unit test to reduce code duplication
    * Augmented test coverage
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Oct 27, 2018
    Configuration menu
    Copy the full SHA
    53354ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81f5045 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2018

  1. Fixes kubernetes#36 Hostname matching doesn't conform to modern hostn…

    …ame patterns
    
    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    6232591 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#37 from jimmystewpot/36-fix_hostname_regex

    Fixes kubernetes#36 Hostname matching doesn't conform to modern hostname patterns
    casualjim authored Oct 30, 2018
    Configuration menu
    Copy the full SHA
    b7bbaf9 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2018

  1. add unicode (emoji) and puny code domain support to hostname validation

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    57feacd View commit details
    Browse the repository at this point in the history
  2. fix regex to allow non-ascii and long tlds

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    292dbf3 View commit details
    Browse the repository at this point in the history
  3. tidy up readability of tests

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    1683a72 View commit details
    Browse the repository at this point in the history
  4. add unicode (emoji) and puny code domain support to hostname validation

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    92d4b1f View commit details
    Browse the repository at this point in the history
  5. rebase from master

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    6f9e6a3 View commit details
    Browse the repository at this point in the history
  6. tidy up readability of tests

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    8fde95a View commit details
    Browse the repository at this point in the history
  7. fix up rebase merge conflict

    Signed-off-by: James Lamb <jlamb@atlassian.com>
    jlambatl committed Nov 26, 2018
    Configuration menu
    Copy the full SHA
    88430b3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b52d81c View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2018

  1. Merge pull request kubernetes#40 from jimmystewpot/extend_hostname_va…

    …lidation
    
    add unicode (emoji) and puny code domain support to hostname validation
    casualjim authored Nov 27, 2018
    Configuration menu
    Copy the full SHA
    e471370 View commit details
    Browse the repository at this point in the history
  2. Fix regression on unmarshalling Ref types by using gob encode/decode

    * Contributes go-swagger/go-swagger#1816
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Nov 27, 2018
    Configuration menu
    Copy the full SHA
    c166dd3 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2018

  1. Configuration menu
    Copy the full SHA
    c3754ea View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2018

  1. Fix gob encoding on operations

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Dec 1, 2018
    Configuration menu
    Copy the full SHA
    4967c03 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#88 from fredbi/fix-1824

    Fix gob encoding on operations
    casualjim authored Dec 1, 2018
    Configuration menu
    Copy the full SHA
    5b6cdde View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2018

  1. Reduce debt

    * get up to date with golangci linters
    * factorized duplicate code in expander
    * split expander into more specialized bits
    * More UT with headers
    * linting: simplified returned errors
    * regenerated bindata with Kevin Burke's go-bindata fork
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Dec 14, 2018
    Configuration menu
    Copy the full SHA
    cfd46eb View commit details
    Browse the repository at this point in the history
  2. * Updated to new lint rules (globals and inits)

    * Fixes following scope lint checker
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Dec 14, 2018
    Configuration menu
    Copy the full SHA
    22e9aff View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2018

  1. More unit testing

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Dec 25, 2018
    Configuration menu
    Copy the full SHA
    9453b11 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2018

  1. Fix hostname validation regexp

    * fixes kubernetes#42 (simple hostnames, not necessarily FDQNs)
    * adds more tests for hostname validations
    
    Validation rules are:
      * internationalized (unicode) hostnames are permitted
      * for FDQNs, top-level domain (e.g. ".com"), is at least to letters long (no special characters here)
      * hostnames may start with a digit [RFC1123]
      * special registered names with an underscore ('_') are not allowed in this context
      * dashes are permitted, but not at the start or the end of a segment
      * long top-level domain names (e.g. example.london) are permitted
      * symbol unicode points are permitted (e.g. emoji) (not for top-level domain)
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Dec 28, 2018
    Configuration menu
    Copy the full SHA
    1a393c9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#43 from fredbi/fix-42

    Fix hostname validation regexp
    casualjim authored Dec 28, 2018
    Configuration menu
    Copy the full SHA
    870f786 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2019

  1. Add DeepCopy and DeepCopyInto methods to all types

    Kubernetes has a project called code-generator[0] which generates
    DeepCopy methods for API models.
    
    Cilium[1] is using code-generator on top of models generated by
    go-swagger, to allow deep copying of API models. Hovewer, code-generator
    assumes that every type which is not a basic type in Golang, needs to
    have its own DeepCopy and DeepCopyIn methods. It includes also type
    extensions which are built on top of basic types just to add methods.
    
    Currently, if code-generator is executed on go-swagger API models which
    use types from strfmt, generated DeepCopy methods fail, because strfmt
    types do not implement DeepCopy.
    
    This change adds implementations of DeepCopy and DeepCopyInto which will
    allow to use go-generator together with go-swagger and strfmt.
    
    [0] https://github.com/kubernetes/code-generator
    [1] https://github.com/cilium/cilium
    
    Signed-off-by: Michal Rostecki <mrostecki@suse.de>
    vadorovsky committed Jan 16, 2019
    Configuration menu
    Copy the full SHA
    13e5106 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#44 from mrostecki/deepcopy

    Add DeepCopy and DeepCopyInto methods to all types
    casualjim authored Jan 16, 2019
    Configuration menu
    Copy the full SHA
    dd2bd34 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2019

  1. Fix typos in comments to DeepCopyInto methods

    Follow-up to kubernetes#44.
    
    Fixes: 13e5106 ("Add DeepCopy and DeepCopyInto methods to all
    types")
    
    Signed-off-by: Michal Rostecki <mrostecki@suse.de>
    vadorovsky committed Jan 17, 2019
    Configuration menu
    Copy the full SHA
    2ce5189 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#45 from mrostecki/fix-deepcopy-comments

    Fix typos in comments to DeepCopyInto methods
    gregmarr authored Jan 17, 2019
    Configuration menu
    Copy the full SHA
    bc2668d View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. Merge pull request kubernetes#85 from fredbi/lint-and-refact

    Lint and refact
    casualjim authored Jan 24, 2019
    Configuration menu
    Copy the full SHA
    53d7765 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2019

  1. empty datetime shouldn't be converted to epoch time and it shouldn't …

    …be accepted as valid
    
            * changes error message
            * fixes scopelint issue
    
    Signed-off-by: Mario Morgado <mario@beamery.com>
    Mario Morgado committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    28d9b38 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#47 from mjvm/fix/empty-datetime-shouldb…

    …e-invalid
    
    empty datetime shouldn't be converted to epoch time
    casualjim authored Feb 11, 2019
    Configuration menu
    Copy the full SHA
    bb51295 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2019

  1. Feature: Add CIDR format

    Adds CIDR format and validation that work for IPv4 and IPv6.
    
    - Code formatted using `goimports`.
    - Lint fixes based on output from `golangci-lint` that do not impact
      the exported names. Adds exclude for lint errors that requires a
      change to the exported names.
    - Dependency updated using `go mod tidy`
    
    Signed-off-by: kenjones <kenjones@cisco.com>
    kenjones-cisco committed Mar 7, 2019
    Configuration menu
    Copy the full SHA
    2dbb59a View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Merge pull request kubernetes#48 from kenjones-cisco/feature/cidr-format

    Feature: Add CIDR format
    fredbi authored Mar 11, 2019
    Configuration menu
    Copy the full SHA
    4d736b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2019

  1. Add object disable array check option

    Signed-off-by: Xiaoxi He <xxhe@alauda.io>
    tossmilestone committed Mar 21, 2019
    Configuration menu
    Copy the full SHA
    691579c View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#106 from tossmilestone/fix-array-items

    Fix items must be in type Array
    casualjim authored Mar 21, 2019
    Configuration menu
    Copy the full SHA
    5b1623b View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2019

  1. Use google/uuid not pborman/uuid

    pborman maintains google's uuid package, and they have a complicated shared history,
    but the release notes for pborman/uuid now read
    
    The choice of this package vs the google/uuid package is largely dependent on your
    use case. If you want to use UUIDs as keys, used the google/uuid version (a UUID
    is an array). Use this package for compatibility, needing to distinguish between
    non-set UUID and the zero UUID, prefer byte slices over arrays.
    
    google/uuid is now a dependency of pborman/uuid which is now just a compat wrapper,
    so switch to just using google/uuid. Changes are just minor API differences.
    
    Signed-off-by: Justin Cormack <justin.cormack@docker.com>
    justincormack committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    c004288 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#50 from justincormack/uuid

    Use google/uuid not pborman/uuid
    casualjim authored Mar 22, 2019
    Configuration menu
    Copy the full SHA
    29177d4 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2019

  1. Fix schema options aren't propagated to childs (kubernetes#107)

    * Fix schema options aren't propagated to childs
    
    Signed-off-by: Xiaoxi He <xxhe@alauda.io>
    
    * Fix scopelint errors
    
    Signed-off-by: Xiaoxi He <xxhe@alauda.io>
    tossmilestone authored and fredbi committed Apr 3, 2019
    Configuration menu
    Copy the full SHA
    3fd099a View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2019

  1. Handle JSON null values for DateTime

    Signed-off-by: André Bierlein <andre.mt.bierlein@gmail.com>
    ligustah committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    5029a76 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#52 from ligustah/fix-time-json-null

    Handle JSON null values for DateTime
    casualjim authored Apr 8, 2019
    Configuration menu
    Copy the full SHA
    b0d6b39 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Issue kubernetes#53: Added support for parsing ISO8601 timestamps tha…

    …t are in localtime.
    
    Signed-off-by: jwalter1-quest <jeff.walter@quest.com>
    jwalter1-quest committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    57bf448 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#54 from jeffreydwalter/master

    Issue kubernetes#53: Added support for parsing ISO8601 timestamps that are in local time.
    casualjim authored Apr 11, 2019
    Configuration menu
    Copy the full SHA
    e87a5af View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2019

  1. Fixed gob encoding/decoding for SwaggerProps

    This fixes regression with issue go-swagger/go-swagger#1481, since the
    introduction of gob encoding to clone specs (in go-openapi/loads).
    
    Raised dupl linter threshold
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    cb961e9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#90 from fredbi/fix-gob-security

    Fixed gob encoding/decoding for SwaggerProps
    casualjim authored Apr 16, 2019
    Configuration menu
    Copy the full SHA
    9d9763c View commit details
    Browse the repository at this point in the history

Commits on May 10, 2019

  1. Add nullable

    Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
    sttts committed May 10, 2019
    Configuration menu
    Copy the full SHA
    915f417 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2056d6 View commit details
    Browse the repository at this point in the history
  3. Add nullable

    Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
    sttts committed May 10, 2019
    Configuration menu
    Copy the full SHA
    505f35f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a2e819b View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2019

  1. update .travis.yml for go1.12

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 16, 2019
    Configuration menu
    Copy the full SHA
    fa1c2cc View commit details
    Browse the repository at this point in the history
  2. update go.mod and travis for go1.12

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 16, 2019
    Configuration menu
    Copy the full SHA
    bdfd7e0 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2019

  1. update go.mod and travis for go1.12

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    6405b90 View commit details
    Browse the repository at this point in the history
  2. Fix function comments based on best practices from Effective Go

    Signed-off-by: CodeLingo Bot <bot@codelingo.io>
    CodeLingoBot authored and casualjim committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    49685d4 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2019

  1. remove easyjson dependency

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    a3e0926 View commit details
    Browse the repository at this point in the history
  2. use official mongodb driver

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    f620df9 View commit details
    Browse the repository at this point in the history
  3. fix linting issues

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    432db8f View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2019

  1. revert back to stdencodign for base64

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    ecb9ab3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#57 from go-openapi/fix-base64-regression

    revert back to stdencoding for base64
    fredbi authored Jul 5, 2019
    Configuration menu
    Copy the full SHA
    6faa644 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2019

  1. fix expanding for go 1.13

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Sep 8, 2019
    Configuration menu
    Copy the full SHA
    2223ab3 View commit details
    Browse the repository at this point in the history
  2. update to newer spec for go1.13 compatibility

    Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
    casualjim committed Sep 8, 2019
    Configuration menu
    Copy the full SHA
    d8e712d View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2019

  1. Add parameter type and validation match check (kubernetes#116)

    * Add parameter type and validation match check
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Refactor type constants
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Add multipleOf check and test cases
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Refactor type constants - object
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    Ilya Kaznacheev authored and fredbi committed Oct 3, 2019
    Configuration menu
    Copy the full SHA
    d85eac7 View commit details
    Browse the repository at this point in the history
  2. Refactor type formats (kubernetes#117)

    * Refactor type formats
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Remove binary format constant
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Comment binary format constant
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    
    * Disable godox linter
    
    Signed-off-by: Ilya Kaznacheev <ilya@kaznacheev.me>
    ilyakaznacheev authored and fredbi committed Oct 3, 2019
    Configuration menu
    Copy the full SHA
    cae306c View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2019

  1. Bump go-yaml version to cover fixed ddos heuristic

    This PR bumbs go-yaml to v2.2.4, which has the ddos vulnerability fixed.
    
    Issue:
    go-yaml preceding 2.2.4 had vulnerability to ddos attack via billion
    laughs bomb.
    Such attack lead to program to be unresponsive.
    Issue has been described in
    https://raesene.github.io/blog/2019/10/15/From-stackoverflow-to-CVE/
    
    Signed-off-by: Petr Kotas <petr.kotas@gmail.com>
    petrkotas committed Oct 17, 2019
    Configuration menu
    Copy the full SHA
    e0a8a7d View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#118 from petrkotas/go-yaml-fix

    Bump go-yaml version to cover fixed ddos heuristic
    casualjim authored Oct 17, 2019
    Configuration menu
    Copy the full SHA
    80d596e View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2019

  1. linting, excluding test

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    cac980b View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes#120 from fredbi/fix-relinting-excl-tests

    linting, excluding test
    casualjim authored Oct 25, 2019
    Configuration menu
    Copy the full SHA
    1170d1c View commit details
    Browse the repository at this point in the history
  3. linting & refactoring tests

    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    cc050a9 View commit details
    Browse the repository at this point in the history
  4. Fixes issues related to swagger-specific rules with array schemas and…

    … items.
    
    Behavior of the swagger validation is the one expected by swagger (i.e. arrays must have items, items must be in arrays).
    
    Default behavior of the json-schema validation is the one expected by jsonschema.
    
    The behavior expected for swagger schemas is enabled by an option to check specifically for arrays and items.
    
    Additional testing is carried out to check for different situations: in example, in response examples, in default values.
    
    * extra linting work, particularly on tests.
    * updated deps with other go-openapi repos
    * updated golanci-lint config and disable latest round of new, unused linters
    
    * fixes kubernetes#43  (property named "items", in examples)
    * fixes kubernetes#83  (pure jsonschema validation of array schemas without items specification)
    * fixes kubernetes#108 (property named "items")
    * fixes kubernetes#112 (property named "items")
    * fixes go-swagger/go-swagger#1456
    
    Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
    fredbi committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    6cf224c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2019

  1. Merge pull request kubernetes#119 from fredbi/fix-items

    Fixes issues related to swagger-specific rules with array schemas and items
    casualjim authored Nov 6, 2019
    Configuration menu
    Copy the full SHA
    08232b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2020

  1. Add 'pkg/validation/errors/' from commit '79f62bc27c99a0c81cbd7cfdced…

    …6d414dbee2c7b'
    
    git-subtree-dir: pkg/validation/errors
    git-subtree-mainline: 8b50664
    git-subtree-split: 79f62bc27c99a0c81cbd7cfdced6d414dbee2c7b
    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    5388388 View commit details
    Browse the repository at this point in the history
  2. Add 'pkg/validation/validate/' from commit '3f99090fb9b5c19d4b814575b…

    …460d99799b16477'
    
    git-subtree-dir: pkg/validation/validate
    git-subtree-mainline: 5388388
    git-subtree-split: 3f99090fb9b5c19d4b814575b460d99799b16477
    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    41abdff View commit details
    Browse the repository at this point in the history
  3. Add 'pkg/validation/spec/' from commit '3b94d049fd4e1a0ad441b1d45bb33…

    …8b25647b519'
    
    git-subtree-dir: pkg/validation/spec
    git-subtree-mainline: 41abdff
    git-subtree-split: 3b94d049fd4e1a0ad441b1d45bb338b25647b519
    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    4231b2d View commit details
    Browse the repository at this point in the history
  4. Add 'pkg/validation/strfmt/' from commit '4582ae0121f5848b90e7a251223…

    …8b657c8136124'
    
    git-subtree-dir: pkg/validation/strfmt
    git-subtree-mainline: 4231b2d
    git-subtree-split: 4582ae0121f5848b90e7a2512238b657c8136124
    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    d5ff47f View commit details
    Browse the repository at this point in the history
  5. pkg/validation: adapt imports

    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    c8c0761 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    73fa09a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d3e34b6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cc84d3c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    12b99a1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    810b3bd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7c24206 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2feab02 View commit details
    Browse the repository at this point in the history
  13. pkg/validation: revert github.com/go-openapi/validate/pull/81

    We had contributed this upstream, but never used it due to structural schemas.
    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    6d4b372 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f11f208 View commit details
    Browse the repository at this point in the history
  15. go mod tidy

    sttts committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    79abcd8 View commit details
    Browse the repository at this point in the history