Visitar URL original
implicit body placeholders · Issue #5397 · Orange-OpenSource/hurl · GitHub
Skip to content

implicit body placeholders #5397

Open
Open

Description

@nektro

Problem to solve

testing exact json response but some fields might include the time

Proposal

{
  "id": 2,
  "added_on": ?,
  "foo": "bar",
}

Activity

  1. jcamiel commented on Oct 30, 2026

    @jcamiel
    Collaborator

    Hi @nektro

    In the (hopefully) next Hurl version, we intend to work on semantic JSON diff. The implicit assert body is today an "exact" diff (whitespaces included) and we want these two asserts to be identical:

    GET https://foo.com
    HTTP 200
    {
      "id": 2,
      "foo": "bar"
    }

    And

    GET https://foo.com
    HTTP 200
    {
      "foo": "bar",
      "id": 2
    }

    We plan also to add this syntax, if you are only interested in some fields:

    GET https://foo.com
    HTTP 200
    {
      "id": 2,
      "foo": "bar",
      ...
    }

    I think it will cover your case (you can ignore all the remaining items instead of just one). The syntax you propose has the advantage to state that "there should be at least a field named added_on". We'll see what we can do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions