Skip to content

Use strings instead of integer ids for simulate examples #5061

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

Merged
merged 2 commits into from
Jul 31, 2025

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Jul 30, 2025

These examples were being rendered with the _id as an integer, however, that is invalid and we only allow strings for integers.

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.
Copy link
Member

@masseyke masseyke left a comment

Choose a reason for hiding this comment

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

Looks like our prettier config wants those to be single quotes, but otherwise LGTM. Thanks for fixing it.

npx prettier --config compiler/.prettierrc.json --log-level warn --write specification/simulate/ingest/examples/request/SimulateIngestRequestExample* 

@dakrone
Copy link
Member Author

dakrone commented Jul 30, 2025

The CI fails with Validation is not supported from forks, so I guess I should wait until someone verifies this manually?

@l-trotta
Copy link
Contributor

no need to run validation on examples, I'll just merge it

@l-trotta l-trotta merged commit 36c4828 into elastic:main Jul 31, 2025
11 of 12 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)
l-trotta pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)

Co-authored-by: Lee Hinman <[email protected]>
l-trotta pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)

Co-authored-by: Lee Hinman <[email protected]>
l-trotta pushed a commit that referenced this pull request Jul 31, 2025
* Use strings instead of integer ids for simulate examples

These examples were being rendered with the `_id` as an integer, however, that is invalid and we only allow strings for integers.

* Change " -> ' because... reasons?

(cherry picked from commit 36c4828)

Co-authored-by: Lee Hinman <[email protected]>
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.

3 participants