Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teach the manifest about dictionaries #395

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Conversation

fgsch
Copy link
Member

@fgsch fgsch commented Sep 7, 2021

Fixes #393.

@fgsch fgsch force-pushed the fgsch/local_dictionaries branch from 6936881 to dfb7a57 Compare September 7, 2021 13:03
@Integralist Integralist added the enhancement New feature or request label Sep 7, 2021
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

LGTM. One small comment.

// Dictionary represents a dictionary to be mocked by the local testing server.
type Dictionary struct {
File string `toml:"file"`
Format string `toml:"format"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does format need omitempty?

By this I mean: is it a required property, or will the file format be inferred (or a default used) by Viceroy?

Copy link
Member Author

@fgsch fgsch Sep 7, 2021

Choose a reason for hiding this comment

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

It is required:

Sep 07 14:11:26.596 ERROR invalid configuration for 'strings': missing 'format' field

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK cool 👍🏻

@Integralist Integralist merged commit 3673ccf into main Sep 7, 2021
@Integralist Integralist deleted the fgsch/local_dictionaries branch September 7, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewriting fastly.toml strips out some properties
2 participants