Permalink
Browse files

Rename JSONSchema to lower case

  • Loading branch information...
1 parent ddf5b8e commit 85c66d5a753116e1a514966a262897147d0ec7e5 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -111,7 +111,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:interface](#interface)
* [aspnet:JavaScript](#javascript)
* [aspnet:json](#json)
-* [aspnet:JSONSchema](#jsonschema)
+* [aspnet:jsonschema](#jsonschema)
* [aspnet:JSX](#jsx)
* [aspnet:Middleware](#middleware)
* [aspnet:MvcController](#mvccontroller)
@@ -376,14 +376,14 @@ Produces `filename.json`
[Return to top](#top)
-### JSONSchema
+### jsonschema
Creates a new JSON schema file
Example:
```
-yo aspnet:JSONSchema filename
+yo aspnet:jsonschema filename
```
Produces `filename.json`
View
@@ -21,7 +21,7 @@ Subgenerators:
yo aspnet:interface [options] <name>
yo aspnet:JavaScript [options] <name>
yo aspnet:json [options] <name>
- yo aspnet:JSONSchema [options] <name>
+ yo aspnet:jsonschema [options] <name>
yo aspnet:Middleware [options] <name>
yo aspnet:MvcController [options] <name>
yo aspnet:MvcView [options] <name>
@@ -2,7 +2,7 @@ Description:
Creates a new JSON schema file
Example:
- yo aspnet:JSONSchema filename
+ yo aspnet:jsonschema filename
This will create:
filename.json
@@ -11,7 +11,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
var extension = '.json';
this.generateTemplateFile(
- 'JSONSchema.json',
+ 'jsonschema.json',
extension, {
name: this.classNameWithoutExtension(extension)
}
File renamed without changes.
@@ -408,17 +408,17 @@ describe('Subgenerators with named arguments tests', function() {
util.fileContentCheck(filename, 'Check file content', 'namespace emptyTest');
});
- describe('aspnet:JSONSchema without extension', function() {
+ describe('aspnet:jsonschema without extension', function() {
var arg = 'MySchema';
var filename = 'MySchema.json';
- util.goCreateWithArgs('JSONSchema', [arg]);
+ util.goCreateWithArgs('jsonschema', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /my MySchema JSON format/);
});
- describe('aspnet:JSONSchema with extension', function() {
+ describe('aspnet:jsonschema with extension', function() {
var filename = 'MySchema.json';
- util.goCreateWithArgs('JSONSchema', [filename]);
+ util.goCreateWithArgs('jsonschema', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /my MySchema JSON format/);
});

0 comments on commit 85c66d5

Please sign in to comment.