opensearch-project / opensearch-api-specification

API specification for OpenSearch
Apache License 2.0
33 stars 57 forks source link

[BUG] inaccurate numeric type #596

Open amberzsy opened 2 weeks ago

amberzsy commented 2 weeks ago

What is the bug?

there are many places using generic "number" as numeric type.

How can one reproduce the bug?

example: https://github.com/opensearch-project/opensearch-api-specification/blob/939a292753eeb1b3bffdf5ed4f3039ab5edd2f04/spec/schemas/_core.bulk.yaml#L56

What is the expected behavior?

should use more accurate definition for numeric types. https://swagger.io/docs/specification/v3_0/data-models/data-types/

dblock commented 3 days ago

@amberzsy Is there more than #598 and #612?

I think we need a lint rule for these.

amberzsy commented 3 days ago

@amberzsy Is there more than #598 and #612?

yes probably more..... maybe let me update the ticket with scope of Search & Document API?

I think we need a lint rule for these.

yes, agree. issue opened here