-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add visibility
the to rest-spec-api
#56104
Add visibility
the to rest-spec-api
#56104
Conversation
Pinging @elastic/es-core-infra (:Core/Infra/REST API) |
rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_index_template.json
Outdated
Show resolved
Hide resolved
It is still unclear to me why |
49cb189
to
8d09e42
Compare
dd3e52e
to
b441fec
Compare
...n/src/test/resources/rest-api-spec/api/data_frame_transform_deprecated.update_transform.json
Show resolved
Hide resolved
After some further thought, I think the advantages of having all our APIs included in the spec, even for internal uses, is valuable so that we can validate we have not missing any specs. LGTM. |
This documents API intended exposure to the outside world. * `private`, API is not exposed on clients * `feature_flag` API is exposed on clients but clients can emit documentation on the fact its not available OOTB. * `public`, the API is publicly available in distributions. `visibility` does not replace `stability` as that only documents the state of development for the API. An `experimental` API can be `public` and `stable` API's can be behind a `feature_flag`. There are currently no restrictions on this.
…he parser validated this
996e842
to
8c8ab07
Compare
(cherry picked from commit e31e3de)
This documents API's intended exposure to the outside world under a new key
visibility
:private
, API is not exposed on clientsfeature_flag
API is exposed on clients but clients can emit documentation on the fact its not available OOTB.public
, the API is publicly available in distributions.If an API has
visibility: feature_flag
it also needs to document the feature flag its behind underfeature_flag: "es.___"
.ClientYamlSuiteRestApiParser.java
is updated to reflect this requirement.visibility
does not replacestability
as that only documents the state of development for the API. Anexperimental
API can bepublic
andstable
API's can be behind afeature_flag
. There are currently no restrictions on this.Relates to #54664 (comment) where new API's have come in that are fully intended to be
private
. As well as several API's coming in that are behind feature_flags.When
stability
was introduced in #38413 (comment) we decided to hold of onprivate
. I feel the API has changed significantly since to reconsider this decision.