Package io.smallrye.openapi.model
Class Extensions
java.lang.Object
io.smallrye.openapi.model.Extensions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetIsRequiredSet(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody) Returns whetherRequestBody.setRequired(Boolean)has been called on a request body.static StringgetMethodRef(org.eclipse.microprofile.openapi.models.Operation operation) Implementation specific, set a reference to the Java method, so that we can bind back to it later if neededstatic StringgetName(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) static StringgetParamRef(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter) Implementation specific, set a reference to the Java method parameter, so that we can bind back to it later if neededstatic <E> EgetPrivateExtension(org.eclipse.microprofile.openapi.models.Extensible<?> extensible, String name, Class<E> type) getProfiles(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) static BooleangetRequiredDefault(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody) static StringgetResponseCode(org.eclipse.microprofile.openapi.models.responses.APIResponse response) static List<org.eclipse.microprofile.openapi.models.media.Schema> getTypeObservers(org.eclipse.microprofile.openapi.models.media.Schema schema) static booleanisHidden(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) static booleanisPrivateExtension(String name) static voidremoveProfiles(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) static voidstatic voidsetIsRequiredSet(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody, Boolean requiredDefault) static voidsetMethodRef(org.eclipse.microprofile.openapi.models.Operation operation, org.jboss.jandex.ClassInfo resourceClass, org.jboss.jandex.MethodInfo method) static voidstatic voidsetParamRef(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter, org.jboss.jandex.AnnotationTarget source) static voidsetPrivateExtension(org.eclipse.microprofile.openapi.models.Extensible<?> extensible, String name, Object value) static voidsetRequiredDefault(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody, Boolean requiredDefault) Sets the value to use forrequiredifRequestBody.setRequired(Boolean)has not been called.static voidsetResponseCode(org.eclipse.microprofile.openapi.models.responses.APIResponse response, String responseCode) static voidsetTypeObservers(org.eclipse.microprofile.openapi.models.media.Schema schema, List<org.eclipse.microprofile.openapi.models.media.Schema> observers)
-
Field Details
-
PRIVATE_EXT_PREFIX
- See Also:
-
-
Method Details
-
getProfiles
-
removeProfiles
public static void removeProfiles(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) -
getName
-
setName
public static void setName(org.eclipse.microprofile.openapi.models.Extensible<?> extensible, String name) -
isHidden
public static boolean isHidden(org.eclipse.microprofile.openapi.models.Extensible<?> extensible) -
setHidden
public static void setHidden(org.eclipse.microprofile.openapi.models.Extensible<?> extensible, Boolean hidden) -
getResponseCode
public static String getResponseCode(org.eclipse.microprofile.openapi.models.responses.APIResponse response) -
setResponseCode
public static void setResponseCode(org.eclipse.microprofile.openapi.models.responses.APIResponse response, String responseCode) -
getRequiredDefault
public static Boolean getRequiredDefault(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody) -
setRequiredDefault
public static void setRequiredDefault(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody, Boolean requiredDefault) Sets the value to use forrequiredifRequestBody.setRequired(Boolean)has not been called.If this method is called,
RequestBody.getRequired()will return this value unlessRequestBody.setRequired(Boolean)is called.- Parameters:
requiredDefault- the default value forrequired
-
getIsRequiredSet
public static boolean getIsRequiredSet(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody) Returns whetherRequestBody.setRequired(Boolean)has been called on a request body.- Parameters:
requestBody- the request body- Returns:
trueifsetRequiredhas been called
-
setIsRequiredSet
public static void setIsRequiredSet(org.eclipse.microprofile.openapi.models.parameters.RequestBody requestBody, Boolean requiredDefault) -
getParamRef
public static String getParamRef(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter) Implementation specific, set a reference to the Java method parameter, so that we can bind back to it later if needed- Returns:
- reference to the method parameter that we scanned this on
-
setParamRef
public static void setParamRef(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter, org.jboss.jandex.AnnotationTarget source) -
getMethodRef
Implementation specific, set a reference to the Java method, so that we can bind back to it later if needed- Returns:
- reference to the method that we scanned this on
-
setMethodRef
public static void setMethodRef(org.eclipse.microprofile.openapi.models.Operation operation, org.jboss.jandex.ClassInfo resourceClass, org.jboss.jandex.MethodInfo method) -
getTypeObservers
public static List<org.eclipse.microprofile.openapi.models.media.Schema> getTypeObservers(org.eclipse.microprofile.openapi.models.media.Schema schema) -
setTypeObservers
public static void setTypeObservers(org.eclipse.microprofile.openapi.models.media.Schema schema, List<org.eclipse.microprofile.openapi.models.media.Schema> observers) -
isPrivateExtension
-
getPrivateExtension
-
setPrivateExtension
-