Skip to content

Conversation

@pquentin
Copy link
Member

@pquentin pquentin commented Dec 9, 2025

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

* Add media types to specification

They come from the rest-api-spec.

* Support mediaType

* Fix lint

* Fix compiler lint

* Use string values for enums

* Take advantage of the AST and use enums text values

* Fix linter

* Run make spec-format-fix

* Add recursive enum parsing to handle meta members

* Add const to highlight enum target name

* Remove support for composite enums

* Add more media types

---------

Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
(cherry picked from commit 8260d40)

# Conflicts:
#	output/schema/schema.json
#	specification/_global/rank_eval/RankEvalRequest.ts
#	specification/_global/terms_enum/TermsEnumRequest.ts
#	specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts
#	specification/cluster/reroute/ClusterRerouteRequest.ts
#	specification/cluster/state/ClusterStateRequest.ts
#	specification/indices/add_block/IndicesAddBlockRequest.ts
#	specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts
#	specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts
#	specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts
#	specification/indices/get_sample/GetRandomSampleRequest.ts
#	specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts
#	specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts
#	specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts
#	specification/indices/remove_block/IndicesRemoveBlockRequest.ts
#	specification/indices/stats/IndicesStatsRequest.ts
#	specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts
#	specification/inference/rerank/RerankRequest.ts
#	specification/ingest/put_pipeline/PutPipelineRequest.ts
#	specification/nodes/info/NodesInfoRequest.ts
#	specification/nodes/stats/NodesStatsRequest.ts
#	specification/nodes/usage/NodesUsageRequest.ts
#	specification/project/tags/TagsRequest.ts
#	specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts
#	specification/snapshot/delete/SnapshotDeleteRequest.ts
@github-actions
Copy link
Contributor

Following you can find the validation changes against the target branch for the APIs.

No changes detected.

You can validate these APIs yourself by using the make validate target.

@pquentin pquentin merged commit 98f0ea7 into 9.2 Dec 10, 2025
11 checks passed
@pquentin pquentin deleted the backport/9.2/pr-5779 branch December 10, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants