pub fn ref_target_name(reference: &str) -> Option<&str>Expand description
Extract the trailing schema name from a same-document $ref
(#/components/schemas/Foo -> Foo).
Cross-file references (for example schemas/x.yaml#/components/schemas/Foo) yield
None: the models pipeline and the same-document $ref resolver only handle
in-document schemas, so accepting a cross-file name here will risk emitting a
local Named type for what is actually external. The server generator reads
cross-file names via ref_component_name paired with ref_file_part.