mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +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)
|
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);
|
return (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
**
|
||||||
|
***************************************************************************/
|
||||||
|
public Schema withRefToSchema(String componentName)
|
||||||
|
{
|
||||||
|
return withRef("#/components/schemas/" + componentName);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user