code: func (a *AttributeDefinition) IsReadOnly() bool {
  	if _, readOnlyMetadataIsPresent := a.Metadata["swagger:read-only"]; readOnlyMetadataIsPresent {
  		return true
  	}
  	return false
  }
docs: // IsReadOnly returns true if attribute is read-only (set using SetReadOnly() method)