Skip to content

Conversation

@timriley
Copy link
Member

@timriley timriley commented Jan 4, 2022

As agreed, this is our recommendation to resolve the issue raised in #422.

Most of our code examples depend on a ::Types module having been already created, so to make sure those examples are as clear as possible, I've also added Types = Dry.Types() in front of any grouping of code examples.

Made a few other very minor adjustments along the way, too.

Resolves #422

@timriley timriley requested a review from solnic as a code owner January 4, 2022 00:44
@timriley
Copy link
Member Author

timriley commented Jan 4, 2022

@solnic @flash-gordon — are you happy with this? If so, I'll merge this and actually make sure we have a 1.5 version of the docs published at dry-rb.org.

### Categories

Assuming you included `Dry::Types` ([see instructions](docs::getting-started)) in a module called `Types`:
Assuming you've defined your own `Types` module ([see instructions](docs::getting-started)):
Copy link

Choose a reason for hiding this comment

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

How do you feel about changing the assertion to one that would be more indicative that they should do this, rather than conditional that they might have.

Suggested change
Assuming you've defined your own `Types` module ([see instructions](docs::getting-started)):
After you've defined your own `Types` module ([see instructions](docs::getting-started)):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Params namespace disapearing

6 participants