Can JSON integer attributes be referenced?

前端 未结 2 1293
温柔的废话
温柔的废话 2021-01-26 11:03

I have the following JSON schema that I want to validate and Python unittest.

{
    \"properties\": {

        \"traffic_parameters\" {

            \"capacity\"         


        
2条回答
  •  抹茶落季
    2021-01-26 11:43

    This won't work this way. $ref references must always point to schemas. So it can be an object or a boolean, but not a number.

提交回复
热议问题