Skip to content

Data entered by pasbuild init should be validated, invalid data should be rejected. #4

@f-fr

Description

@f-fr

Currently, pasbuild init doesn't seem to validate the entered data (completely?). For instance

  1. Entering something else than "multi" results in a "single" project → accidental typos like entering "mult" instead of "multi" are not caught
  2. Entering something else than "library" results in an "application" project
  3. Entering certain characters in the author field may lead to an invalid project.xml. For instance, entering a name together with a mail address in the form Author name <mail@author.org> results in an invalid project.xml file because of the "<" character, which is not escaped (whether a mail address should be specified here is a different matter). Other characters should be escaped as well (e.g. &).

In the first two cases invalid user input should not be accepted, and the user should be informed about the typo. In the third case the invalid input should either be rejected or problematic characters should be escaped so that the generated project.xml file is always valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions