Documentation
¶
Index ¶
Constants ¶
const ( // Legacy spec paths (separate files for v1, v2, v2 Preview) PathStripeSpec = "../../api/openapi-spec/spec3.sdk.json" PathStripeSpecV2 = "../../api/openapi-spec/spec3.v2.sdk.json" PathStripeSpecV2Preview = "../../api/openapi-spec/spec3.v2.sdk.preview.json" // Unified spec paths (v1+v2 combined in single files) PathUnifiedSpec = "../../api/openapi-spec/spec3.cli.json" PathUnifiedPreviewSpec = "../../api/openapi-spec/spec3.cli.preview.json" )
OpenAPI spec file paths shared across code generation tools
Variables ¶
This section is empty.
Functions ¶
func DenormalizeObject ¶
DenormalizeObject accepts a schema and returns a map of its properties, fully expanded to the lowest level. Note that the one exception to this is for arrays of objects. The `GetType` function explicitly does not support arrays of objects, so we don't expand those (this is due to there being no way to specify an array of objects in a shell).
We denormalize into a dot-notation since that has the most compatibility across shells. This is not following proper conventions (as per https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html), but our API is becoming increasingly complex and dot-notation is the most compatible way to handle it (brackets are not supported in all shells).
Types ¶
This section is empty.