---
"Internal version":

 - do:
      create:
          index:  test_1
          type:   test
          id:     1
          body:   { foo: bar }

 - match:   { _version: 1}

 - do:
      catch: conflict
      create:
          index:  test_1
          type:   test
          id:     1
          body:   { foo: bar }

---
"Internal versioning with explicit version":

 - do:
      create:
          index:          test
          type:           test
          id:             3
          body:           { foo: bar }
          version:        5
          ignore:         400

 - match: { status: 400 }
 - match: { error.type: action_request_validation_exception }
 - match: { error.reason: "Validation Failed: 1: create operations do not support explicit versions. use index instead;" }

---
"Internal version":

 - do:
      create:
          index:  test_1
          type:   test
          id:     1
          body:   { foo: bar }

 - match:   { _version: 1}

 - do:
      catch: conflict
      create:
          index:  test_1
          type:   test
          id:     1
          body:   { foo: bar }

---
"Internal versioning with explicit version":

 - skip:
      version: " - 5.1.1"
      reason: validation logic only fixed from 5.1.2 onwards

 - do:
      create:
          index:          test
          type:           test
          id:             3
          body:           { foo: bar }
          version:        5
          ignore:         400

 - match: { status: 400 }
 - match: { error.type: action_request_validation_exception }
 - match: { error.reason: "Validation Failed: 1: create operations do not support explicit versions. use index instead;" }

Fix BWC condition on REST test
Fix BWC condition on REST test

Adds a missing skip section to a REST test that was forgotten in #21998
