Skip to content

Best-effort fix of typos #9

@joellabes

Description

@joellabes

If there's a known key (say, description) which is not present in a model but there's a similarly-spelled invalid key present (say, desciption), it's probably safe to update the spelling instead of moving it to a config.

"similarly-spelled" is left as an exercise to the implementor, waves hands wildly Levenshtein distance or whatever

Before:

models: 
  - name: my_model 
    desciption: "This is a very useful model which does things" #this is misspelled! 

  - name: my_second_model
    desciption: "idk what this is doing here" # this is misspelled 
    description: "This is the true descriptor of the model"

After:

models: 
  - name: my_model 
    description: "This is a very useful model which does things" # this has been fixed, because there wasn't a competing description key

  - name: my_second_model
    description: "This is the true descriptor of the model"
    config: 
      meta: 
        desciption: "idk what this is doing here" #this was moved to config.meta, because there was already a competing correctly-spelled description key. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions