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

Refactor Thing Description parsing in thing.ts #3076

Open
benfrancis opened this issue Mar 15, 2023 · 0 comments
Open

Refactor Thing Description parsing in thing.ts #3076

benfrancis opened this issue Mar 15, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@benfrancis
Copy link
Member

Every time I edit thing.ts I notice that there's a lot of logic duplicated between the constructor() and the updateFromDescription() methods.

This is a reminder to myself to try to untangle that and more cleanly extract out common methods for parsing each member of a Thing Description.

In the next W3C WoT Working Group charter period there are plans for a normative algorithm for parsing Thing Descriptions, so this class should eventually implement that algorithm.

@benfrancis benfrancis added this to the 2.0 milestone Mar 15, 2023
@benfrancis benfrancis self-assigned this Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant