locked
Create a '$ref' object in a JSON definiton schema that preserve the developer portal operation from crashing RRS feed

  • Question

  • Hi,

    When I add in an operation a representation with a schema that contains a '$ref' object (type : "string"), the developer portal of this operation fail to load and has an error code 500.

    Do you have idea to solve this problem ? I already tried to replace the $ symbol with various code : it either doesn't work or it does not preserve the '$ref' object name.

    Thanks for your help

    PS : My JSON schema look like this :

    {
        "type""object",
        "properties": {
            "schemas": {
                "type""array",
                "items": {
                    "type""string"
                }
            },
            "id": {
                "type""string"
            },
            "externalId": {
                "type""string"
            },
            "meta": {
                "type""object",
                "properties": {
                    "resourceType": {
                        "type""string"
                    },
                    "created": {
                        "type""string"
                    },
                    "location": {
                        "type""string"
                    },
                    "version": {
                        "type""string"
                    }
                }
            },
            "userName": {
                "type""string"
            },
            "name": {
                "type""object",
                "properties": {
                    "formatted": {
                        "type""string"
                    },
                    "familyName": {
                        "type""string"
                    },
                    "givenName": {
                        "type""string"
                    }
                }
            },
            "displayName": {
                "type""string"
            },
            "nickName": {
                "type""string"
            },
            "emails": {
                "type""array",
                "items": {
                    "type""object",
                    "properties": {
                        "value": {
                            "type""string"
                        },
                        "display": {
                            "type""string"
                        },
                        "type": {
                            "type""string"
                        },
                        "primary": {
                            "type""boolean"
                        }
                    },
                    "required": [
                        "value",
                        "display",
                        "type",
                        "primary"
                    ]
                }
            },
            "groups": {
                "type""array",
                "items": {
                    "type""object",
                    "properties": {
                        "value": {
                            "type""string"
                        },
                        "display": {
                            "type""string"
                        },
                        "$ref": {
                            "type""string"
                        }
                    },
                    "required": [
                        "value",
                        "display",
                        "$ref"
                    ]
                }
            },
            "entitlements": {
                "type""array",
                "items": {
                    "type""object",
                    "properties": {
                        "value": {
                            "type""string"
                        },
                        "display": {
                            "type""string"
                        },
                        "type": {
                            "type""string"
                        }
                    },
                    "required": [
                        "value",
                        "display",
                        "type"
                    ]
                }
            },
            "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                "type""object",
                "properties": {
                    "employeeNumber": {
                        "type""string"
                    },
                    "manager": {
                        "type""object",
                        "properties": {
                            "value": {
                                "type""string"
                            },
                            "displayName": {
                                "type""string"
                            },
                            "$ref": {
                                "type""string"
                            }
                        }
                    }
                }
            }
        }
    }

    Wednesday, May 13, 2020 4:35 PM

All replies

  • Hi lollaplaouza - Is the issue occurring only with Developer Portal? 
    Saturday, May 23, 2020 8:48 PM
  • Yes, it probably crash when the developer portal try to find the $ref, but it's an object.
    Monday, May 25, 2020 12:17 PM