API docs does not fully reflect the actual implementation: enroll
accept null
tags
#3702
Labels
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
For confirmed bugs, please report:
The
api/fleet/agents/enroll
, API states on the openAPI definitiontags
is required, however fleet-server accepts it asnull
.In the code we don't fully validate the received data:
fleet-server/internal/pkg/api/handleEnroll.go
Lines 521 to 539 in 53ebe67
the model allows for a
null
or absenttags
property:fleet-server/internal/pkg/api/openapi.gen.go
Lines 354 to 374 in 3c5b375
Perhaps it'd be worth to double check our whole OpenAPI definition against the actual implementation
The text was updated successfully, but these errors were encountered: