Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Add videoUrl field#298

Merged
raisedadead merged 1 commit intofreeCodeCamp:devfrom
beaucarnes:add-video
Sep 25, 2018
Merged

Add videoUrl field#298
raisedadead merged 1 commit intofreeCodeCamp:devfrom
beaucarnes:add-video

Conversation

@beaucarnes
Copy link
Copy Markdown
Member

Add vidoeUrl to responsive web design challenges.

"releasedOn": "Feb 17, 2017",
"challengeType": 0,
"translations": {},
c/Url": "",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here is your linting error

@Bouncey
Copy link
Copy Markdown
Member

Bouncey commented Sep 4, 2018

@beaucarnes You have some linting errors, also you will need to update the challengeSchema to allow the videoUrl property to be a string, Joi may allow you to check a vaild url also? If it takes more than a minute of looking up I wouldn't worry about it too much.

Copy link
Copy Markdown
Member

@Bouncey Bouncey left a comment

Choose a reason for hiding this comment

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

There have been some changes to the schema merged recently, you will need to rebase for those changes.

})
),
guideUrl: Joi.string().uri({ scheme: 'https' }),
videoUrl: Joi.string(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To allow for empty strings, this will need to be

Joi.string().allow('')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CI failed on videoUrl: ''

Add vidoeUrl to repsponsive web design challenges.

update schema

fix schema and capitalization
@raisedadead raisedadead merged commit ce3cc22 into freeCodeCamp:dev Sep 25, 2018
@raisedadead
Copy link
Copy Markdown
Member

Nice work. Thanks @beaucarnes

raisedadead pushed a commit that referenced this pull request Sep 25, 2018
## [3.2.1](v3.2.0...v3.2.1) (2018-09-25)

### Bug Fixes

* Add videoUrl field ([#298](#298)) ([ce3cc22](ce3cc22))
@raisedadead
Copy link
Copy Markdown
Member

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants