Hello @Fishwaldo, thanks for your contribution, can we have this merged please ? @danielgtaylor
I have the same issue
Correct a spelling mistake on the standalone word
fix: typo standalone
Update all dependencies and use the new go.mod structure
Revert "chore: upgrade dependencies"
This reverts commit f4a8ff92849561fe4141fb49de0ea11f59014bc7.
chore: upgrade dependencies
Update all dependencies and use the new go.mod structure
Update all dependencies and use the new go.mod structure
Allow to use server variables like this
ref: https://swagger.io/docs/specification/api-host-and-base-path/
Example PoC usage
humaRouter.ServerLink("Example server", "{scheme}://{host}:{port}/api", map[string]huma.CaServerVariable{
"scheme": {
Enum: []string{"http", "https"},
Default: "https",
Description: "Example description 🔥",
},
"host": {
Default: "127.0.0.1",
Description: "IP or domain where your server is located.",
},
"port": {
Default: "1337",
Description: "Server port.",
},
})
Allow to use server variables like this
ref: https://swagger.io/docs/specification/api-host-and-base-path/
Example PoC usage
humaRouter.ServerLink("Example server", "{scheme}://{host}:{port}/api", map[string]huma.CaServerVariable{
"scheme": {
Enum: []string{"http", "https"},
Default: "https",
Description: "Example description 🔥",
},
"host": {
Default: "127.0.0.1",
Description: "IP or domain where your server is located.",
},
"port": {
Default: "1337",
Description: "Server port.",
},
})
refactor: var declarations
chore: upgrade dependencies
style: typos
refactor: using the better existent methods where it can be useful
Allow to use server variables like this
ref: https://swagger.io/docs/specification/api-host-and-base-path/
usage :
humaRouter.ServerLink("", "{scheme}://127.0.0.1:1337/api", map[string]huma.CaServerVariable{"scheme": {
Enum: []string{"http", "https"},
Default: "http",
Description: "The scheme of server",
}})
feat: add server variables for server URL template substitution
Hello @leaanthony :), Would you like to review and merge this PR ? Thanks
Few or no laptops are currently available with Phoenix 7040. This topic is here in a preliminary way.
Update README.md