Skip to content

Arazzo Runtime expression escaping #363

@char0n

Description

@char0n

Hi @frankkilcommins,

I'm thinking of the corner case around section https://spec.openapis.org/arazzo/v1.0.1.html#requestbody-object-example, specifically Request Body Object.payload field. The filed is defined as Any but can contain Runtime expressions inside it. This might introduce ambiguity in a case where my data looks like a Runtime expression:

Image
 contentType: application/json
  payload: 
    petOrder:
      petId: $inputs.pet_id # I want this not be evaluated as runtime expression 
      couponCode: $inputs.coupon_code
      quantity: $inputs.quantity
      status: placed
      complete: false

What I mean is that sometimes data might be looking like runtime expressions, but it's just a data. IMHO this mixing introduces ambiguity which is hard to get out of.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions