Skip to content

Commit 5217818

Browse files
build(deps): bump github.com/danielgtaylor/huma/v2 from 2.35.0 to 2.37.2 (#989)
Bumps [github.com/danielgtaylor/huma/v2](https://github.com/danielgtaylor/huma) from 2.35.0 to 2.37.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/danielgtaylor/huma/releases">github.com/danielgtaylor/huma/v2's releases</a>.</em></p> <blockquote> <h2>v2.37.2</h2> <h2>Overview</h2> <p>This bugfix release fixes an issue with how form data was being documented in OpenAPI.</p> <p>This also fixes embedded objects with valid JSON tags being incorrectly embedded in the OpenAPI docs.</p> <h2>What's Changed</h2> <ul> <li>Don't embed embedded objects with valid JSON tags by <a href="https://github.com/wolveix"><code>@​wolveix</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/978">danielgtaylor/huma#978</a></li> <li>Fix OpenAPI path prefix regression from $schema fix PR by <a href="https://github.com/wolveix"><code>@​wolveix</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/979">danielgtaylor/huma#979</a></li> <li>Fix form param doc regression by <a href="https://github.com/wolveix"><code>@​wolveix</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/981">danielgtaylor/huma#981</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/danielgtaylor/huma/compare/v2.37.1...v2.37.2">https://github.com/danielgtaylor/huma/compare/v2.37.1...v2.37.2</a></p> <h2>v2.37.1</h2> <h2>Overview</h2> <p>This bugfix release fixes an issue regarding the Swagger UI docs renderer, as well as fixes an issue preventing Groups from using the configurable options released in v2.37.1.</p> <p>This also brings interface constructors to <code>humamux</code>.</p> <h2>What's Changed</h2> <ul> <li>Export Gorilla Mux interface constructors by <a href="https://github.com/RangelReale"><code>@​RangelReale</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/965">danielgtaylor/huma#965</a></li> <li>fix(api): use proper CSP hash for inline script in Swagger doc renderer by <a href="https://github.com/leonklingele"><code>@​leonklingele</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/977">danielgtaylor/huma#977</a></li> <li>fix(group): ensure &quot;Group&quot; satisfies the configProvider interface by <a href="https://github.com/leonklingele"><code>@​leonklingele</code></a> in <a href="https://redirect.github.com/danielgtaylor/huma/pull/976">danielgtaylor/huma#976</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/danielgtaylor/huma/compare/v2.37.0...v2.37.1">https://github.com/danielgtaylor/huma/compare/v2.37.0...v2.37.1</a></p> <h2>v2.37.0</h2> <h2>Overview</h2> <h3>Dropped Explicit IDN-Hostname Validation</h3> <p>This validation unintentionally imported an external library to the base Huma library. Since this was not a requested feature, it has been removed for now. The <code>idn-hostname</code> format value has become an alias for <code>hostname</code> in the meantime.</p> <h3>Operation ID Normalization</h3> <p>Spaces in operation IDs get automatically converted to hyphens now.</p> <h3>Optimizations &amp; Fixed Memory Leak</h3> <p>Various internal operations have been optimized (~7% overall improvement): <a href="https://redirect.github.com/danielgtaylor/huma/pull/973#issue-3960297052">danielgtaylor/huma#973</a></p> <p>A memory leak when using <code>MultipartFormFiles</code> has been resolved.</p> <h3>New Configurable Options</h3> <h4>Allow Additional Properties By Default</h4> <p>A new config option has been added to allow additional properties by default. This can be set in the API config.</p> <pre lang="go"><code>config.AllowAdditionalPropertiesByDefault = true </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/danielgtaylor/huma/commit/887f7d43222686b060805a934ab33a417b44e2fc"><code>887f7d4</code></a> Fix form param doc regression (<a href="https://redirect.github.com/danielgtaylor/huma/issues/981">#981</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/f02efeb11d29318cf3b83bc11fc6552111540749"><code>f02efeb</code></a> Fix OpenAPI path prefix regression from $schema fix PR (<a href="https://redirect.github.com/danielgtaylor/huma/issues/979">#979</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/cbf60b60af0e4263e86895fcefc8e984e9e646c5"><code>cbf60b6</code></a> Don't embed embedded objects with valid JSON tags (<a href="https://redirect.github.com/danielgtaylor/huma/issues/978">#978</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/6d0295c4e163944774ec6167685f14304cb51356"><code>6d0295c</code></a> fix(group): ensure &quot;Group&quot; satisfies the configProvider interface (<a href="https://redirect.github.com/danielgtaylor/huma/issues/976">#976</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/07ca6c5d176d5891fbee2de67283fd430e4b2894"><code>07ca6c5</code></a> fix(api): use proper CSP hash for inline script in Swagger doc renderer (<a href="https://redirect.github.com/danielgtaylor/huma/issues/977">#977</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/58edcf2bf599799fb2d27c71cf12023470af6256"><code>58edcf2</code></a> Export humamux constructors (<a href="https://redirect.github.com/danielgtaylor/huma/issues/965">#965</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/6c29f67c9d3813abb3a62d19c260ba20934478ed"><code>6c29f67</code></a> chore(api,docs): update unpkg libraries, specify SRI hash, add strict CSP (<a href="https://redirect.github.com/danielgtaylor/huma/issues/916">#916</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/3aee9bd1728aeebe7c52815158b938ed4d8b475d"><code>3aee9bd</code></a> Additional docs + normalize operation IDs (<a href="https://redirect.github.com/danielgtaylor/huma/issues/974">#974</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/e31a8198ad1133f530a66c6240b93b4eaf90fbe3"><code>e31a819</code></a> Resource optimizations, Go 1.25, remove IDNA library, add benchmark CI (<a href="https://redirect.github.com/danielgtaylor/huma/issues/973">#973</a>)</li> <li><a href="https://github.com/danielgtaylor/huma/commit/ddbb810fd56350e8c789050b8189cbb54b4ad3f7"><code>ddbb810</code></a> Implement Registry and Query Validation Options (<a href="https://redirect.github.com/danielgtaylor/huma/issues/925">#925</a>)</li> <li>Additional commits viewable in <a href="https://github.com/danielgtaylor/huma/compare/v2.35.0...v2.37.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/danielgtaylor/huma/v2&package-manager=go_modules&previous-version=2.35.0&new-version=2.37.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent a94c56a commit 5217818

File tree

3 files changed

+37
-20
lines changed

3 files changed

+37
-20
lines changed

go.mod

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ require (
88
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.4.0
99
github.com/caarlos0/env/v11 v11.4.0
1010
github.com/coreos/go-oidc/v3 v3.17.0
11-
github.com/danielgtaylor/huma/v2 v2.35.0
11+
github.com/danielgtaylor/huma/v2 v2.37.2
1212
github.com/golang-jwt/jwt/v5 v5.3.1
1313
github.com/google/go-containerregistry v0.21.2
1414
github.com/jackc/pgx/v5 v5.8.0
1515
github.com/prometheus/client_golang v1.23.2
1616
github.com/rs/cors v1.11.1
1717
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
18+
github.com/spf13/cobra v1.10.2
1819
github.com/stretchr/testify v1.11.1
1920
go.opentelemetry.io/contrib/instrumentation/runtime v0.67.0
2021
go.opentelemetry.io/otel v1.42.0
@@ -52,6 +53,7 @@ require (
5253
github.com/google/uuid v1.6.0 // indirect
5354
github.com/googleapis/enterprise-certificate-proxy v0.3.11 // indirect
5455
github.com/googleapis/gax-go/v2 v2.17.0 // indirect
56+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5557
github.com/jackc/pgpassfile v1.0.0 // indirect
5658
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
5759
github.com/jackc/puddle/v2 v2.2.2 // indirect
@@ -68,18 +70,19 @@ require (
6870
github.com/prometheus/otlptranslator v1.0.0 // indirect
6971
github.com/prometheus/procfs v0.19.2 // indirect
7072
github.com/sirupsen/logrus v1.9.3 // indirect
73+
github.com/spf13/pflag v1.0.10 // indirect
7174
github.com/vbatts/tar-split v0.12.2 // indirect
7275
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
7376
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
7477
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
7578
go.opentelemetry.io/otel/trace v1.42.0 // indirect
7679
go.yaml.in/yaml/v2 v2.4.3 // indirect
77-
golang.org/x/crypto v0.47.0 // indirect
78-
golang.org/x/net v0.49.0 // indirect
80+
golang.org/x/crypto v0.48.0 // indirect
81+
golang.org/x/net v0.51.0 // indirect
7982
golang.org/x/oauth2 v0.35.0 // indirect
8083
golang.org/x/sync v0.19.0 // indirect
8184
golang.org/x/sys v0.41.0 // indirect
82-
golang.org/x/text v0.33.0 // indirect
85+
golang.org/x/text v0.34.0 // indirect
8386
golang.org/x/time v0.14.0 // indirect
8487
google.golang.org/api v0.265.0 // indirect
8588
google.golang.org/genproto v0.0.0-20260128011058-8636f8732409 // indirect

go.sum

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ github.com/containerd/stargz-snapshotter/estargz v0.18.2 h1:yXkZFYIzz3eoLwlTUZKz
4040
github.com/containerd/stargz-snapshotter/estargz v0.18.2/go.mod h1:XyVU5tcJ3PRpkA9XS2T5us6Eg35yM0214Y+wvrZTBrY=
4141
github.com/coreos/go-oidc/v3 v3.17.0 h1:hWBGaQfbi0iVviX4ibC7bk8OKT5qNr4klBaCHVNvehc=
4242
github.com/coreos/go-oidc/v3 v3.17.0/go.mod h1:wqPbKFrVnE90vty060SB40FCJ8fTHTxSwyXJqZH+sI8=
43-
github.com/danielgtaylor/huma/v2 v2.35.0 h1:FRg3FgVKcMogVhbNY7FjyTwk+p/orLBR3hQBvXXg7dw=
44-
github.com/danielgtaylor/huma/v2 v2.35.0/go.mod h1:3elp5brzdyyZsPlDVvf6w8RLnklKp3abolr+5op3fP0=
43+
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
44+
github.com/danielgtaylor/huma/v2 v2.37.2 h1:Nf9vjy2sxBJFaupPlthXL/Hy2+LurfVbaKHmCMEI7xE=
45+
github.com/danielgtaylor/huma/v2 v2.37.2/go.mod h1:95S04G/lExFRYlBkKaBaZm9lVmxRmqX9f2CgoOZ11AM=
4546
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4647
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4748
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -58,6 +59,8 @@ github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfU
5859
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
5960
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
6061
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
62+
github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM=
63+
github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=
6164
github.com/go-jose/go-jose/v4 v4.1.3 h1:CVLmWDhDVRa6Mi/IgCgaopNosCaHz7zrMeF9MlZRkrs=
6265
github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
6366
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
@@ -81,6 +84,8 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.11 h1:vAe81Msw+8tKUxi2Dq
8184
github.com/googleapis/enterprise-certificate-proxy v0.3.11/go.mod h1:RFV7MUdlb7AgEq2v7FmMCfeSMCllAzWxFgRdusoGks8=
8285
github.com/googleapis/gax-go/v2 v2.17.0 h1:RksgfBpxqff0EZkDWYuz9q/uWsTVz+kf43LsZ1J6SMc=
8386
github.com/googleapis/gax-go/v2 v2.17.0/go.mod h1:mzaqghpQp4JDh3HvADwrat+6M3MOIDp5YKHhb9PAgDY=
87+
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
88+
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
8489
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
8590
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
8691
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
@@ -129,17 +134,25 @@ github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0t
129134
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
130135
github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA=
131136
github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
137+
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
132138
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4=
133139
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY=
134140
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
135141
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
142+
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
143+
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
144+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
145+
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
146+
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
136147
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
137148
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
138149
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
139150
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
140151
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
141152
github.com/vbatts/tar-split v0.12.2 h1:w/Y6tjxpeiFMR47yzZPlPj/FcPLpXbTUi/9H7d3CPa4=
142153
github.com/vbatts/tar-split v0.12.2/go.mod h1:eF6B6i6ftWQcDqEn3/iGFRFRo8cBIMSJVOpnNdfTMFA=
154+
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
155+
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
143156
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
144157
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
145158
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 h1:q4XOmH/0opmeuJtPsbFNivyl7bCt7yRBbeEm2sC/XtQ=
@@ -164,12 +177,13 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
164177
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
165178
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
166179
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
167-
golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8=
168-
golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A=
180+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
181+
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
182+
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
169183
golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI=
170184
golang.org/x/mod v0.34.0/go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY=
171-
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
172-
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
185+
golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=
186+
golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y=
173187
golang.org/x/oauth2 v0.35.0 h1:Mv2mzuHuZuY2+bkyWXIHMfhNdJAdwW3FuWeCPYN5GVQ=
174188
golang.org/x/oauth2 v0.35.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
175189
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
@@ -178,8 +192,8 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
178192
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
179193
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
180194
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
181-
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
182-
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
195+
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
196+
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
183197
golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI=
184198
golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=
185199
gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=

pkg/model/types.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ type Input struct {
7878
}
7979

8080
type InputWithVariables struct {
81-
Input `json:",inline"`
81+
Input
8282
Variables map[string]Input `json:"variables,omitempty" doc:"A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values."`
8383
}
8484

8585
type KeyValueInput struct {
86-
InputWithVariables `json:",inline"`
87-
Name string `json:"name" doc:"Name of the header or environment variable." example:"SOME_VARIABLE"`
86+
InputWithVariables
87+
Name string `json:"name" doc:"Name of the header or environment variable." example:"SOME_VARIABLE"`
8888
}
8989

9090
type ArgumentType string
@@ -95,11 +95,11 @@ const (
9595
)
9696

9797
type Argument struct {
98-
InputWithVariables `json:",inline"`
99-
Type ArgumentType `json:"type" doc:"Argument type: 'positional' or 'named'" example:"positional"`
100-
Name string `json:"name,omitempty" doc:"The flag name (for named arguments), including any leading dashes. Empty for positional arguments." example:"--port"`
101-
ValueHint string `json:"valueHint,omitempty" doc:"An identifier for positional arguments. Used in transport URL variable substitution." example:"file_path"`
102-
IsRepeated bool `json:"isRepeated,omitempty" doc:"Whether the argument can be repeated multiple times."`
98+
InputWithVariables
99+
Type ArgumentType `json:"type" doc:"Argument type: 'positional' or 'named'" example:"positional"`
100+
Name string `json:"name,omitempty" doc:"The flag name (for named arguments), including any leading dashes. Empty for positional arguments." example:"--port"`
101+
ValueHint string `json:"valueHint,omitempty" doc:"An identifier for positional arguments. Used in transport URL variable substitution." example:"file_path"`
102+
IsRepeated bool `json:"isRepeated,omitempty" doc:"Whether the argument can be repeated multiple times."`
103103
}
104104

105105
type Icon struct {

0 commit comments

Comments
 (0)