'How to add <a href> link or Url in java attribute description in java in OpenAPI 3.0
I am trying to add reference URl in property field to provide more information in link but Iam getting below error when I get open Swagger-UI and not seeing the description as well.
Error:
Resolver error at paths./v1/employee.post.requestBody.content.application/json.schema.properties.empType.$ref`
Could not resolve reference: Failed to fetch
Below is the code Code:
@Schema(description = "Unique Key information", required = true,, ref= "http://localhost:8089/refs#/properties/profile")
@NotEmpty(message = "emp-type.notempty")
private String empType;
/**
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|