Skip to content

Commit

Permalink
docs: fix code links
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkhan committed Aug 18, 2024
1 parent 9eda25b commit ca68d3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ types defined in `Anchor::Types`, see [Annotations](#annotations).
This gem provides TypeScript and JSON Schema generators with
`Anchor::TypeScript::SchemaGenerator` and `Anchor::JSONSchema::SchemaGenerator`.

See the [example](./example) Rails app for a fully functional example using
`Anchor`. See [schema_test.rb](./example/test/models/schema_test.rb) for
`Schema` generation examples.
See the [example](./spec/example) Rails app for a fully functional example using
`Anchor`. See
[example_schema_snapshot_spec.rb](./spec/anchor/example_schema_snapshot_spec.rb)
for `Schema` generation examples.

## Inference

Expand All @@ -33,7 +34,7 @@ then mapped to an `Anchor::Type` in
`Anchor::Types::Inference::ActiveRecord::SQL.from`.

- `Anchor.config.ar_column_to_type` allows custom mappings, see
[example/initializers/anchor.rb](./examples/initializers/anchor.rb)
[spec/example/config/initializers/anchor.rb](./spec/example/config/initializers/anchor.rb)
- `Anchor.config.use_active_record_presence` can be set to `true` to infer
nullable attributes (i.e. fields that do not specify `null: false` in
schema.rb) as non-null when an unconditional
Expand Down

0 comments on commit ca68d3c

Please sign in to comment.