Resolves a RestSchema instance into an actual Schema object or reference.
Resolves a RestSchema instance into an actual Schema object or reference. If the schema is unnamed then this method will simply return the same value as RestSchema.createSchema. If the schema is named, it may be internally registered under its name and a Reference Object will be returned instead - see SchemaRegistry.
An implementation of SchemaResolver which registers named RestSchemas and replaces them with a Reference Object. All the registered schemas can then be extracted and listed in the Components object.