-
Notifications
You must be signed in to change notification settings - Fork 4
docs: POST /api/catalogs create-catalog contract #243
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
Changes from all commits
8414699
70f75d1
c749f70
9f211e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. KISS - too complex. follow existing docs architecture.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,4 @@ | ||||||
| --- | ||||||
| title: Create Catalog | ||||||
| openapi: post /api/catalogs | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the required OpenAPI frontmatter format. Line 3 should follow the documented Suggested frontmatter adjustment-openapi: post /api/catalogs
+openapi: 'POST /api/catalogs'As per coding guidelines, “Include OpenAPI spec reference in API reference MDX frontmatter using format: openapi: 'METHOD /path'.” 📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSource: Coding guidelines |
||||||
| --- | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enforce the “name or from required” rule in the schema.
Line 2094 documents a required constraint, but the schema currently allows
{}. Add an OpenAPI constraint so tooling and generated clients enforce the same rule.Suggested schema fix
"CreateCatalogRequest": { "type": "object", "description": "Request body for creating a catalog. At least one of name or from must be supplied. The owning account is taken from the request credentials, never from this body.", + "anyOf": [ + { "required": ["name"] }, + { "required": ["from"] } + ], "properties": { "name": { "type": "string", "description": "Optional. Display name for the catalog. If omitted when from is supplied, a name is derived from the source run." }, "from": { "$ref": "`#/components/schemas/CatalogMaterializationSource`" } } },🤖 Prompt for AI Agents