lib/govuk_schemas/schema.rb in govuk_schemas-4.7.0 vs lib/govuk_schemas/schema.rb in govuk_schemas-5.0.0

- old
+ new

@@ -29,10 +29,10 @@ # Return a random schema of a certain type # # @param schema_type [String] The type: frontend, publisher, notification or links # @return [Hash] a JSON schema as a hash def self.random_schema(schema_type:) - all(schema_type: schema_type).values.sample + all(schema_type:).values.sample end # Return all schema names # # @return [Array] all the schema names