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

Add videoUrl field #298

Merged
merged 1 commit into from Sep 25, 2018
Merged

Add videoUrl field #298

merged 1 commit into from Sep 25, 2018

Conversation

beaucarnes
Copy link
Member

Add vidoeUrl to responsive web design challenges.

@@ -488,6 +494,7 @@
"releasedOn": "Feb 17, 2017",
"challengeType": 0,
"translations": {},
c/Url": "",
Copy link
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
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
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.

@@ -29,6 +29,7 @@ const schema = Joi.object().keys({
})
),
guideUrl: Joi.string().uri({ scheme: 'https' }),
videoUrl: Joi.string(),
Copy link
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
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
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
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.

None yet

3 participants