Skip to content

Commit

Permalink
Update all references to govuk-content-schemas to publishing api
Browse files Browse the repository at this point in the history
This reflects the fact that schemas have now been moved and the latest release of this gem switches to supporting publishing api.
  • Loading branch information
BeckaL committed Nov 23, 2022
1 parent 05d35f6 commit ec710b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GOV.UK Schemas

Gem to work with the [govuk-content-schemas](https://github.com/alphagov/govuk-content-schemas).
Gem to work with the [schemas in publishing api](https://github.com/alphagov/publishing-api/tree/main/content_schemas).

## Installation

Expand All @@ -16,7 +16,7 @@ gem "govuk_schemas", "~> VERSION"

## Running the test suite

Make sure you have `govuk-content-schemas` cloned in a sibling directory:
Make sure you have `publishing-api` cloned in a sibling directory:

```
bundle exec rake
Expand Down
2 changes: 1 addition & 1 deletion govuk_schemas.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]

# This should be kept in sync with the json-schema version of govuk-content-schemas.
# This should be kept in sync with the json-schema version of publishing-api.
spec.add_dependency "json-schema", ">= 2.8", "< 3.1"

spec.add_development_dependency "climate_control"
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_schemas/random_content_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def string_for_regex(pattern)
raise <<-DOC
Don't know how to generate random string for pattern #{pattern.inspect}
This propably means you've introduced a new regex in govuk-content-schemas.
This propably means you've introduced a new regex in publishing api.
Because it's very hard to generate a valid string from a regex alone,
we have to specify a method to generate random data for each regex in
the schemas.
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_schemas/random_example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module GovukSchemas
#
# - The gem doesn't support `patternProperties` yet. On GOV.UK we [use this in
# the expanded frontend
# links](https://github.com/alphagov/govuk-content-schemas/blob/bdd97d18c7a9318e66f332f0748a410fddab1141/formats/frontend_links_definition.json#L67-L71).
# links](https://github.com/alphagov/publishing-api/blob/a8039d430e44c86c3f54a69569f07ad48a4fc912/content_schemas/formats/shared/definitions/frontend_links.jsonnet#L118-L121).
# - It's complicated to generate random data for `oneOf` properties. According
# to the JSON Schema spec a `oneOf` schema is only valid if the data is valid
# against *only one* of the clauses. To do this properly, we'd have to make
Expand Down

0 comments on commit ec710b7

Please sign in to comment.