mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Schema what-changed almost complete.
Perhaps the biggest and most complex of all the models to determine what has changed.
This commit is contained in:
@@ -37,8 +37,10 @@ func (d *Discriminator) FindMappingValue(key string) *low.ValueReference[string]
|
||||
func (d *Discriminator) Hash() [32]byte {
|
||||
|
||||
// calculate a hash from every property.
|
||||
f := []string{d.PropertyName.Value}
|
||||
|
||||
var f []string
|
||||
if d.PropertyName.Value != "" {
|
||||
f = append(f, d.PropertyName.Value)
|
||||
}
|
||||
propertyKeys := make([]string, 0, len(d.Mapping))
|
||||
for i := range d.Mapping {
|
||||
propertyKeys = append(propertyKeys, i.Value)
|
||||
|
||||
Reference in New Issue
Block a user