diff --git a/generator/go.mod b/generator/go.mod index 7aaa34c..d081ee7 100644 --- a/generator/go.mod +++ b/generator/go.mod @@ -3,13 +3,12 @@ module github.com/oasdiff/openapi-changes-model/generator go 1.26.2 require ( - github.com/oasdiff/oasdiff v1.37.0 + github.com/oasdiff/oasdiff v1.38.0 gopkg.in/yaml.v3 v3.0.1 ) require ( cloud.google.com/go v0.123.0 // indirect - github.com/TwiN/go-color v1.4.1 // indirect github.com/getkin/kin-openapi v0.153.0 // indirect github.com/go-openapi/jsonpointer v1.0.2 // indirect github.com/kr/pretty v0.3.1 // indirect diff --git a/generator/go.sum b/generator/go.sum index 8b34833..982f578 100644 --- a/generator/go.sum +++ b/generator/go.sum @@ -17,8 +17,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/oasdiff/oasdiff v1.37.0 h1:4/KuuhVDHF7ltTYNPRvdn9IIbcPRvGRTdJxBErbD5pQ= -github.com/oasdiff/oasdiff v1.37.0/go.mod h1:qCkt/o0lbgoA+Ypaytn5jbZb3jk7WSE2RCBEnhluDAc= +github.com/oasdiff/oasdiff v1.38.0 h1:N1Y+d2fMEQCcJ6WkA+t/xXpaHZ6H7xLGBTafiF4w6z0= +github.com/oasdiff/oasdiff v1.38.0/go.mod h1:ZRuLRToRdSWeAzfG1fNOoMv01KVkdkn9dA0T/+bfZY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= diff --git a/openapi-changes-model.yaml b/openapi-changes-model.yaml index fd28164..96da2b0 100644 --- a/openapi-changes-model.yaml +++ b/openapi-changes-model.yaml @@ -2,7 +2,7 @@ # do not edit by hand. See README.md for how to propose a change. model: OpenAPI Changes Model version: 0.1.0-draft -generated_from: oasdiff v1.37.0 +generated_from: oasdiff v1.38.0 vocabulary: locations: 'A location is a path through the OpenAPI object model, dot-separated, with * standing in for a name the API author chooses (a path, a method, a media type, a property name) and x-* for a specification extension: paths.*.*.requestBody.content.*.schema.maxLength names the maxLength keyword of any request body schema. A claim is location:action[,action...], the edits a change covers; a claim pattern may use ** to cover a location family.' actions: @@ -263,16 +263,6 @@ changes: - paths.*.*.x-*:add,change description: invalid stability level message: stability level %s is not one of %s, %s, %s or %s - - id: api-major-version-not-bumped - level: info - direction: none - area: info - kind: lifecycle - effect: none - claims: - - info.version:change - description: a breaking change was detected but the major version did not increase - message: a breaking change was detected but the major version did not increase, from %s to %s - id: api-operation-id-added level: info direction: none @@ -648,17 +638,7 @@ changes: - paths.*.*.tags:remove description: endpoint tag deleted message: API tag %s removed - - id: api-version-decreased - level: info - direction: none - area: info - kind: lifecycle - effect: none - claims: - - info.version:change - description: a breaking change was detected but the version decreased - message: a breaking change was detected but the version decreased from %s to %s - - id: api-version-not-bumped + - id: api-version-changed level: info direction: none area: info @@ -666,8 +646,8 @@ changes: effect: none claims: - info.version:change - description: a breaking change was detected but the version was not bumped - message: a breaking change was detected but the version is still %s + description: the API version changed + message: the API version changed from %s to %s - id: endpoint-added level: info direction: none @@ -51963,19 +51943,17 @@ coverage: polarity: document status: covered checks: - - api-major-version-not-bumped - - api-version-decreased - - api-version-not-bumped + - api-version-changed - location: info.version action: set polarity: document status: non-contract - reason: version is required; presence changes are validation errors, value changes are checked (api-version rules) + reason: version is required; presence changes are validation errors, value changes are reported (api-version-changed) - location: info.version action: unset polarity: document status: non-contract - reason: version is required; presence changes are validation errors, value changes are checked (api-version rules) + reason: version is required; presence changes are validation errors, value changes are reported (api-version-changed) - location: info.x-* action: add polarity: document