mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
CE-1887 Add withRefToSchema; allow setType to set null
This commit is contained in:
@ -92,7 +92,7 @@ public class Schema
|
||||
*******************************************************************************/
|
||||
public void setType(Type type)
|
||||
{
|
||||
this.type = type.toString().toLowerCase();
|
||||
this.type = type == null ? null : type.toString().toLowerCase();
|
||||
}
|
||||
|
||||
|
||||
@ -697,4 +697,14 @@ public class Schema
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
**
|
||||
***************************************************************************/
|
||||
public Schema withRefToSchema(String componentName)
|
||||
{
|
||||
return withRef("#/components/schemas/" + componentName);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user