Package io.asyncapi.generator.codegen
Class RefResolver
java.lang.Object
io.asyncapi.generator.codegen.RefResolver
Resolves JSON/YAML local $ref pointers within an AsyncAPI document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringnameFromRef(String ref) Extracts the terminal name from a $ref path.Resolves "#/path/to/thing" within the document root.resolveIfRef(Map<String, Object> obj) If the map contains "$ref", resolve it; otherwise return the map itself.
-
Constructor Details
-
RefResolver
-
-
Method Details
-
resolve
Resolves "#/path/to/thing" within the document root. -
resolveIfRef
If the map contains "$ref", resolve it; otherwise return the map itself. -
nameFromRef
Extracts the terminal name from a $ref path. "#/components/messages/UserSignedUp" → "UserSignedUp" -
asMap
-