Skip to content

Conversation

@pquentin
Copy link
Member

@pquentin pquentin commented Dec 2, 2025

As decided offline:

  • Even though this is an endpoint-level property, there's no endpoint-level file, so we use request types and request_media_type/response_media_type keys, as done for URLs
  • We use a union of enums and may introduce enums that refer to specific combinations
  • We don’t change the metamodel, which stays as string[]
  • As a first step, we replicate what is in rest-api-spec. We can fix things later. In particular, for ES|QL and EQL.

This works, as shown by the unchanged schema.json. However, the way I'm getting the request_media_type and response_media_type values is ugly, and I would appreciate a better solution here.

Closes #297

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

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.

@lcawl
Copy link
Contributor

lcawl commented Dec 2, 2025

It would be great to ultimately have those text/plain variations appear in the OpenAPI documents too. It's supported per https://swagger.io/docs/specification/v3_0/describing-responses/#response-media-types

@pquentin
Copy link
Member Author

pquentin commented Dec 3, 2025

@lcawl Agreed! However, this one fixes #297, not #4081.

@JoshMock
Copy link
Member

JoshMock commented Dec 3, 2025

However, the way I'm getting the request_media_type and response_media_type values is ugly, and I would appreciate a better solution here.

Do you mean mediaTypeToStringArray? If so, that's a pretty straightforward solution. If we had a lot more media types it could feel a bit verbose, but I think it's fine as is.

@pquentin
Copy link
Member Author

pquentin commented Dec 4, 2025

Right, parsing unions as strings feels wrong. I would rather use the AST if possible. 🤷

@Anaethelion
Copy link
Contributor

I took a jab at using more the AST.
This however raise a validation error on the codestyle that we should take care of if we decide to move forward with this.

Copy link
Member Author

@pquentin pquentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

Copy link
Contributor

@Anaethelion Anaethelion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pquentin pquentin merged commit 8260d40 into main Dec 9, 2025
12 checks passed
@pquentin pquentin deleted the add-media-types branch December 9, 2025 12:57
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

The backport to 8.19 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.19 8.19
# Navigate to the new working tree
cd .worktrees/backport-8.19
# Create a new branch
git switch --create backport-5779-to-8.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8260d402ec3ef0dfdf86a88736c190016f1adbad
# Push it to GitHub
git push --set-upstream origin backport-5779-to-8.19
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.19

Then, create a pull request where the base branch is 8.19 and the compare/head branch is backport-5779-to-8.19.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

The backport to 9.1 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.1 9.1
# Navigate to the new working tree
cd .worktrees/backport-9.1
# Create a new branch
git switch --create backport-5779-to-9.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8260d402ec3ef0dfdf86a88736c190016f1adbad
# Push it to GitHub
git push --set-upstream origin backport-5779-to-9.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.1

Then, create a pull request where the base branch is 9.1 and the compare/head branch is backport-5779-to-9.1.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

The backport to 9.2 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.2 9.2
# Navigate to the new working tree
cd .worktrees/backport-9.2
# Create a new branch
git switch --create backport-5779-to-9.2
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8260d402ec3ef0dfdf86a88736c190016f1adbad
# Push it to GitHub
git push --set-upstream origin backport-5779-to-9.2
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.2

Then, create a pull request where the base branch is 9.2 and the compare/head branch is backport-5779-to-9.2.

pquentin added a commit that referenced this pull request Dec 9, 2025
* 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
pquentin added a commit that referenced this pull request Dec 10, 2025
* 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/clear_scroll/ClearScrollRequest.ts
#	specification/_global/count/CountRequest.ts
#	specification/_global/field_caps/FieldCapabilitiesRequest.ts
#	specification/_global/msearch/MultiSearchRequest.ts
#	specification/_global/msearch_template/MultiSearchTemplateRequest.ts
#	specification/_global/open_point_in_time/OpenPointInTimeRequest.ts
#	specification/_global/rank_eval/RankEvalRequest.ts
#	specification/_global/search/SearchRequest.ts
#	specification/_global/search_mvt/SearchMvtRequest.ts
#	specification/_global/search_template/SearchTemplateRequest.ts
#	specification/_global/terms_enum/TermsEnumRequest.ts
#	specification/_types/common.ts
#	specification/async_search/submit/AsyncSearchSubmitRequest.ts
#	specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts
#	specification/cat/count/CatCountRequest.ts
#	specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts
#	specification/cluster/reroute/ClusterRerouteRequest.ts
#	specification/cluster/state/ClusterStateRequest.ts
#	specification/eql/search/EqlSearchRequest.ts
#	specification/esql/query/QueryRequest.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_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts
#	specification/indices/get_sample/GetRandomSampleRequest.ts
#	specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts
#	specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts
#	specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts
#	specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts
#	specification/indices/remove_block/IndicesRemoveBlockRequest.ts
#	specification/indices/resolve_index/ResolveIndexRequest.ts
#	specification/indices/stats/IndicesStatsRequest.ts
#	specification/inference/put_ai21/PutAi21Request.ts
#	specification/inference/put_contextualai/PutContextualAiRequest.ts
#	specification/inference/put_llama/PutLlamaRequest.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/security/get_stats/SecurityStatsRequest.ts
#	specification/snapshot/delete/SnapshotDeleteRequest.ts
#	specification/sql/query/QuerySqlRequest.ts
#	specification/streams/status/StreamsStatusRequest.ts
pquentin added a commit that referenced this pull request Dec 10, 2025
* 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
#	output/schema/validation-errors.json
#	specification/_global/count/CountRequest.ts
#	specification/_global/field_caps/FieldCapabilitiesRequest.ts
#	specification/_global/msearch/MultiSearchRequest.ts
#	specification/_global/msearch_template/MultiSearchTemplateRequest.ts
#	specification/_global/open_point_in_time/OpenPointInTimeRequest.ts
#	specification/_global/rank_eval/RankEvalRequest.ts
#	specification/_global/render_search_template/RenderSearchTemplateRequest.ts
#	specification/_global/search/SearchRequest.ts
#	specification/_global/search_mvt/SearchMvtRequest.ts
#	specification/_global/search_template/SearchTemplateRequest.ts
#	specification/_global/terms_enum/TermsEnumRequest.ts
#	specification/_types/common.ts
#	specification/async_search/submit/AsyncSearchSubmitRequest.ts
#	specification/cat/aliases/CatAliasesRequest.ts
#	specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts
#	specification/cat/count/CatCountRequest.ts
#	specification/cat/health/CatHealthRequest.ts
#	specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts
#	specification/cluster/reroute/ClusterRerouteRequest.ts
#	specification/cluster/state/ClusterStateRequest.ts
#	specification/connector/get/ConnectorGetRequest.ts
#	specification/eql/search/EqlSearchRequest.ts
#	specification/esql/async_query/AsyncQueryRequest.ts
#	specification/esql/get_query/GetQueryRequest.ts
#	specification/esql/list_queries/ListQueriesRequest.ts
#	specification/esql/query/QueryRequest.ts
#	specification/ilm/migrate_to_data_tiers/Request.ts
#	specification/indices/add_block/IndicesAddBlockRequest.ts
#	specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts
#	specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts
#	specification/indices/exists_alias/IndicesExistsAliasRequest.ts
#	specification/indices/get_alias/IndicesGetAliasRequest.ts
#	specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts
#	specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts
#	specification/indices/get_sample/GetRandomSampleRequest.ts
#	specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts
#	specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts
#	specification/indices/migrate_reindex/MigrateReindexRequest.ts
#	specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts
#	specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts
#	specification/indices/resolve_index/ResolveIndexRequest.ts
#	specification/indices/stats/IndicesStatsRequest.ts
#	specification/indices/unfreeze/IndicesUnfreezeRequest.ts
#	specification/indices/unfreeze/IndicesUnfreezeResponse.ts
#	specification/inference/put_ai21/PutAi21Request.ts
#	specification/inference/put_contextualai/PutContextualAiRequest.ts
#	specification/inference/put_llama/PutLlamaRequest.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
#	specification/sql/query/QuerySqlRequest.ts
#	specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts
#	validator/rules/no-inline-unions.js
#	validator/test/no-inline-unions.test.js
@pquentin
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
9.2
9.1
8.19

Questions ?

Please refer to the Backport tool documentation

pquentin added a commit that referenced this pull request Dec 10, 2025
* 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
pquentin added a commit that referenced this pull request Dec 10, 2025
* 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/clear_scroll/ClearScrollRequest.ts
#	specification/_global/count/CountRequest.ts
#	specification/_global/field_caps/FieldCapabilitiesRequest.ts
#	specification/_global/msearch/MultiSearchRequest.ts
#	specification/_global/msearch_template/MultiSearchTemplateRequest.ts
#	specification/_global/open_point_in_time/OpenPointInTimeRequest.ts
#	specification/_global/rank_eval/RankEvalRequest.ts
#	specification/_global/search/SearchRequest.ts
#	specification/_global/search_mvt/SearchMvtRequest.ts
#	specification/_global/search_template/SearchTemplateRequest.ts
#	specification/_global/terms_enum/TermsEnumRequest.ts
#	specification/_types/common.ts
#	specification/async_search/submit/AsyncSearchSubmitRequest.ts
#	specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts
#	specification/cat/count/CatCountRequest.ts
#	specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts
#	specification/cluster/reroute/ClusterRerouteRequest.ts
#	specification/cluster/state/ClusterStateRequest.ts
#	specification/eql/search/EqlSearchRequest.ts
#	specification/esql/query/QueryRequest.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_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts
#	specification/indices/get_sample/GetRandomSampleRequest.ts
#	specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts
#	specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts
#	specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts
#	specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts
#	specification/indices/remove_block/IndicesRemoveBlockRequest.ts
#	specification/indices/resolve_index/ResolveIndexRequest.ts
#	specification/indices/stats/IndicesStatsRequest.ts
#	specification/inference/put_ai21/PutAi21Request.ts
#	specification/inference/put_contextualai/PutContextualAiRequest.ts
#	specification/inference/put_llama/PutLlamaRequest.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/security/get_stats/SecurityStatsRequest.ts
#	specification/snapshot/delete/SnapshotDeleteRequest.ts
#	specification/sql/query/QuerySqlRequest.ts
#	specification/streams/status/StreamsStatusRequest.ts
pquentin added a commit that referenced this pull request Dec 10, 2025
* 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
#	output/schema/validation-errors.json
#	specification/_global/count/CountRequest.ts
#	specification/_global/field_caps/FieldCapabilitiesRequest.ts
#	specification/_global/msearch/MultiSearchRequest.ts
#	specification/_global/msearch_template/MultiSearchTemplateRequest.ts
#	specification/_global/open_point_in_time/OpenPointInTimeRequest.ts
#	specification/_global/rank_eval/RankEvalRequest.ts
#	specification/_global/render_search_template/RenderSearchTemplateRequest.ts
#	specification/_global/search/SearchRequest.ts
#	specification/_global/search_mvt/SearchMvtRequest.ts
#	specification/_global/search_template/SearchTemplateRequest.ts
#	specification/_global/terms_enum/TermsEnumRequest.ts
#	specification/_types/common.ts
#	specification/async_search/submit/AsyncSearchSubmitRequest.ts
#	specification/cat/aliases/CatAliasesRequest.ts
#	specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts
#	specification/cat/count/CatCountRequest.ts
#	specification/cat/health/CatHealthRequest.ts
#	specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts
#	specification/cluster/reroute/ClusterRerouteRequest.ts
#	specification/cluster/state/ClusterStateRequest.ts
#	specification/connector/get/ConnectorGetRequest.ts
#	specification/eql/search/EqlSearchRequest.ts
#	specification/esql/async_query/AsyncQueryRequest.ts
#	specification/esql/get_query/GetQueryRequest.ts
#	specification/esql/list_queries/ListQueriesRequest.ts
#	specification/esql/query/QueryRequest.ts
#	specification/ilm/migrate_to_data_tiers/Request.ts
#	specification/indices/add_block/IndicesAddBlockRequest.ts
#	specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts
#	specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts
#	specification/indices/exists_alias/IndicesExistsAliasRequest.ts
#	specification/indices/get_alias/IndicesGetAliasRequest.ts
#	specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts
#	specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts
#	specification/indices/get_sample/GetRandomSampleRequest.ts
#	specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts
#	specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts
#	specification/indices/migrate_reindex/MigrateReindexRequest.ts
#	specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts
#	specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts
#	specification/indices/resolve_index/ResolveIndexRequest.ts
#	specification/indices/stats/IndicesStatsRequest.ts
#	specification/indices/unfreeze/IndicesUnfreezeRequest.ts
#	specification/indices/unfreeze/IndicesUnfreezeResponse.ts
#	specification/inference/put_ai21/PutAi21Request.ts
#	specification/inference/put_contextualai/PutContextualAiRequest.ts
#	specification/inference/put_llama/PutLlamaRequest.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
#	specification/sql/query/QuerySqlRequest.ts
#	specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts
#	validator/rules/no-inline-unions.js
#	validator/test/no-inline-unions.test.js
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.

Track content type directly in the input spec

5 participants