-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ES7): Remove type name from mapping configuration
In ES7, specifying a mapping type name will no longer be allowed. ES6 can emulate this behavior by setting the `include_type_name` parameter to `false` when creating and fetching mappings. This PR sets that parameter so that our mapping format is compatible with ES6, while using the ES7 preferred format. In the future, when we wish to drop support for ES6, we'll only have to stop using the `include_type_name` configuration option. Connects pelias/pelias#831
- Loading branch information
1 parent
15e1e48
commit c887f26
Showing
6 changed files
with
566 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
const config = require('pelias-config').generate(); | ||
|
||
const schema = { | ||
settings: require('./settings')(), | ||
mappings: { | ||
[config.schema.typeName]: require('./mappings/document'), | ||
} | ||
mappings: require('./mappings/document'), | ||
}; | ||
|
||
module.exports = schema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.