def apidoc(cls):
        """
        Helper to inline references from the generated schema
        """
        schema = cls.schema()

        try:
            key = schema["properties"]["data"]["items"]["$ref"]
            ref = key.split("/").pop()
            definition = schema["definitions"][ref]
            schema["properties"]["data"]["items"] = definition
            del schema["definitions"][ref]
            if bool(schema["definitions"]) is False:
                del schema["definitions"]
        except KeyError:
            pass

        return schema

        Helper to inline references from the generated schema
        
CTFd/api/v1/schemas/__init__.py