Skip to content

openapi: fix assertion to new-model in /v2/model#368

Open
BAMF0 wants to merge 1 commit into
canonical:mainfrom
BAMF0:367-fix-model-post-json
Open

openapi: fix assertion to new-model in /v2/model#368
BAMF0 wants to merge 1 commit into
canonical:mainfrom
BAMF0:367-fix-model-post-json

Conversation

@BAMF0

@BAMF0 BAMF0 commented Jun 11, 2026

Copy link
Copy Markdown

Change the /v2/model POST example JSON to use the new-model field instead of assertion, as this is what is expected by snapd for API calls.

Reference: https://github.com/canonical/snapd/blob/49b363c11dc2c79213aa466d9898dc3bd779287f/daemon/api_model.go#L67

Fixes #367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: POST /v2/model shows incorrect JSON field in example

1 participant