Skip to content

[daemonapi] Fix the get instance response contract - #1136

Open
hugobrenet wants to merge 2 commits into
opensvc:mainfrom
hugobrenet:fix/get-instance-contract
Open

hugobrenet wants to merge 2 commits into
opensvc:mainfrom
hugobrenet:fix/get-instance-contract

Conversation

@hugobrenet

Copy link
Copy Markdown
Contributor

Changements :

  • contrôle guest sur le namespace : un scope étranger reçoit désormais 403 ;
  • kind invalide : 500 → 400 ;
  • instance ou nœud absent : 404 vide → problème RFC 7807 JSON ;
  • dates zéro converties en null, y compris dans les ressources imbriquées ;
  • contrat OpenAPI aligné avec les champs réellement sérialisés (csum, preserved, propriétés optionnelles, etc.) ;
  • réponse 404 ajoutée au client généré ;

@hugobrenet

Copy link
Copy Markdown
Contributor Author

dont merge now

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.

1 participant