Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Conversation

patricksmms
Copy link
Contributor

This PR is to sort out the attributes functionalities.

This was implemented before, but was broken https://github.com/apiaryio/api-elements.js/pull/561/files#diff-ed3f4907fe76fdf2e90227edd1bba42cL70

@patricksmms patricksmms requested a review from kylef September 21, 2020 14:40
@patricksmms patricksmms force-pushed the patricksmms/fix-inherited-attrs-in-value-of branch from 90e5a86 to 3bd0e39 Compare September 23, 2020 08:29
@patricksmms patricksmms requested a review from kylef September 23, 2020 08:36
Copy link
Member

@kylef kylef left a comment

Choose a reason for hiding this comment

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

Looks good to me!

* @return {boolean}
*/
const isFixed = e => hasTypeAttribute(e, 'fixed') || hasTypeAttribute(e, 'fixedType');
const isFixed = e => hasTypeAttribute(e, 'fixed');
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to PR but just something I noticed while reading this again, would be nice to make hasTypeAttribute curried and in opposite argument order. I can make a PR once these are merged

const isFixed = hasTypeAttribute('fixed');

Copy link
Contributor Author

@patricksmms patricksmms Sep 23, 2020

Choose a reason for hiding this comment

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

I can do that on another PR

@patricksmms patricksmms merged commit ea823ff into patricksmms/improve-define-value-of Sep 23, 2020
@patricksmms patricksmms deleted the patricksmms/fix-inherited-attrs-in-value-of branch September 23, 2020 15:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants