jsonSchema validation not matching API schema validation

My question:
I am having problems when I try to copy the schema from the API definition, to be validated in the postman test using JsonSchema.

It seems that the API schema validation is on 3.0.x compared to JsonSchema is testing against 3.1

the reason I say this, is that the jsonSchema test fails when I have nullable: true

And my API schema fails when I have
“anyOf”: [
“type”: “number”
“type”: “null”

Details (like screenshots):


How I found the problem:
I found this by looking into reading into different documentation for JSON schemas, and supported types