apidoc-plugin-schema icon indicating copy to clipboard operation
apidoc-plugin-schema copied to clipboard

Add support for patternProperties

Open Darkhogg opened this issue 7 years ago • 4 comments

The patternProperties keyword is completely ignored. It should appear in the list of params as any other property.

Darkhogg avatar Mar 06 '18 16:03 Darkhogg

I'd be more than happy to merge a PR for this feature.

willfarrell avatar Mar 12 '18 21:03 willfarrell

I managed to add it ad-hoc for a single run, I'll send a PR with a proper solution if I have some time.

My idea was to add an argument called "PATTERN_#" with increasing # for different patterns and specify the pattern in the description, kind of like this: patternPrperties PoC

let me know if that's ok or you have another idea in mind, and I'll see what I can do.

Darkhogg avatar Mar 13 '18 15:03 Darkhogg

I think I'd rather have the pattern itself as the name

willfarrell avatar Mar 18 '18 16:03 willfarrell

Yeah, I'd rather too, but apiDoc does very strange things if the name is not alphanumeric, and would straight up not work if . is in the pattern. At least that has been my experience, I'm all ears if there's a solution.

Darkhogg avatar Mar 18 '18 16:03 Darkhogg