Skip to content

Commit

Permalink
Convert property_type validation from enum to string
Browse files Browse the repository at this point in the history
  • Loading branch information
simkesd committed Jan 12, 2022
1 parent e8f4aee commit 9107dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request/SendProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SendProperty extends RequestBase
'total_bedrooms' => array('type' => 'integer', ),


'property_type' => array('type' => 'enum', 'class' => PropertyType::class, ),
'property_type' => array('type' => 'string', ),
'listed_building_grade' => array('type' => 'enum', 'class' => ListedBuildingGrade::class, ),
'tenure' => array('type' => 'enum', 'class' => Tenure::class, ),
'central_heating' => array('type' => 'enum', 'class' => CentralHeating::class, ),
Expand Down Expand Up @@ -122,4 +122,4 @@ class SendProperty extends RequestBase
'waterfront' => array('type' => 'boolean', ),
'wood_floors' => array('type' => 'boolean', ),
);
}
}

1 comment on commit 9107dd5

@M1ke
Copy link
Member

@M1ke M1ke commented on 9107dd5 Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth submitting this change as a PR upstream

Please sign in to comment.