-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Is your feature request related to a problem? Please describe.
Currently, this library relies on uniqid() quite a lot to ensure uniqueness in generated code. This is quite annoying when the generated code is in a git repository, because schema code changes every time my build script runs even if the schema itself was untouched.
Describe the solution you'd like
For class names, I've had some success with a custom class name generator that suffixes with md5(json_encode(propertySchema))
instead of uniqid()
. However, there's some additional places that I can't touch without modifying the library itself:
- ArrayItemValidator generates variable names using uniqid(). I'm not actually very clear why this is needed at all, since validators are anyway split up into separate methods per property.
- AbstractPropertyProcessor uses uniqid() to generate class names for rendering dependencies. Again, I'm not very clear why this is needed - isn't
ClassNameGenerator
enough to take care of this?
Metadata
Metadata
Assignees
Labels
No labels