author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
455,741 | 19.09.2022 16:15:54 | 25,200 | a46fd29bf1d14230dcb4da234fccc03732538453 | support more language for syntax highlighting | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/App_Code/ViewHelpers.cshtml",
"new_path": "src/NuGetGallery/App_Code/ViewHelpers.cshtml",
"diff": "@@ -735,6 +735,9 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);\n@helper IncludeSyntaxHighlightScript()\n{\n<link... | C# | Apache License 2.0 | nuget/nugetgallery | support more language for syntax highlighting (#9232) |
455,784 | 22.09.2022 10:56:52 | 25,200 | 7ee48b30285551cef9f38fbcb044cf56669f405e | add hidden warning label | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/ViewModels/ThirdPartyPackageManagerViewModel.cs",
"new_path": "src/NuGetGallery/ViewModels/ThirdPartyPackageManagerViewModel.cs",
"diff": "@@ -19,7 +19,7 @@ public ThirdPartyPackageManagerViewModel(string name, string contactUrl) : base(\n{\nC... | C# | Apache License 2.0 | nuget/nugetgallery | add hidden warning label (#9247) |
455,736 | 27.09.2022 06:25:22 | 25,200 | aa802046369fd17688cfa0e1eca81e7599bcd6c7 | Update to ServerCommon 2.106.0 to resolve CG alerts | [
{
"change_type": "MODIFY",
"old_path": "src/DatabaseMigrationTools/DatabaseMigrationTools.csproj",
"new_path": "src/DatabaseMigrationTools/DatabaseMigrationTools.csproj",
"diff": "<PrivateAssets>all</PrivateAssets>\n</PackageReference>\n<PackageReference Include=\"NuGet.Services.Validation\">\n- <Ve... | C# | Apache License 2.0 | nuget/nugetgallery | Update to ServerCommon 2.106.0 to resolve CG alerts (#9254) |
455,736 | 27.09.2022 17:33:11 | 25,200 | 6ebbcd0597823b86478067918260de913cfeba61 | Add missing binding redirect for Microsoft.Owin | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Web.config",
"new_path": "src/NuGetGallery/Web.config",
"diff": "</dependentAssembly>\n<dependentAssembly>\n<assemblyIdentity name=\"Microsoft.Owin\" publicKeyToken=\"31BF3856AD364E35\" culture=\"neutral\"/>\n- <bindingRedirect oldVersion=\"0.... | C# | Apache License 2.0 | nuget/nugetgallery | Add missing binding redirect for Microsoft.Owin (#9256) |
455,736 | 04.10.2022 09:39:46 | 25,200 | 340527635aac79cea965b6e3daebd376f682d459 | Address three CodeQL errors
First, ignore moment.js issues by classifying it as a library.
Second, resolve an escaping issue by using a built-in jQuery method.
Third, surpress a usage of MD5 for backwards compatibility reasons. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "CodeQL.yml",
"diff": "+path_classifiers:\n+ library:\n+ # The default behavior is to tag library code as `library`. Results are hidden\n+ # for library code. You can tag further files as being library code by adding them\n+ # to the `library` se... | C# | Apache License 2.0 | nuget/nugetgallery | Address three CodeQL errors (#9260)
First, ignore moment.js issues by classifying it as a library.
Second, resolve an escaping issue by using a built-in jQuery method.
Third, surpress a usage of MD5 for backwards compatibility reasons. |
455,736 | 06.10.2022 11:22:52 | 25,200 | 44336f1a702de438979ed9a74b96962b06230548 | Update NuGetGallery.Services to address CG alerts | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery.Services/NuGetGallery.Services.csproj",
"new_path": "src/NuGetGallery.Services/NuGetGallery.Services.csproj",
"diff": "<Version>1.0.0</Version>\n</PackageReference>\n<PackageReference Include=\"Microsoft.Owin\">\n- <Version>4.1.0</Version>\n+ ... | C# | Apache License 2.0 | nuget/nugetgallery | Update NuGetGallery.Services to address CG alerts (#9274) |
455,769 | 12.10.2022 22:57:34 | -3,600 | 48dde8ef917ffeaf9defa67a9fb411ab51139ee1 | Add instructions to install MSBuildSdk packages
* Added "IsMSBuildSdkPackageType" to determine whether a package is of type MSBuildSdk.
DisplayPackage view modified to show specific instructions for SDK types in project files as per
* Changed "Include" to correct attribute "Name" for SDK package type | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Helpers/ViewModelExtensions/DisplayPackageViewModelFactory.cs",
"new_path": "src/NuGetGallery/Helpers/ViewModelExtensions/DisplayPackageViewModelFactory.cs",
"diff": "@@ -104,6 +104,7 @@ public DisplayPackageViewModelFactory(IIconUrlProvider i... | C# | Apache License 2.0 | nuget/nugetgallery | Add instructions to install MSBuildSdk packages (#9268)
* Added "IsMSBuildSdkPackageType" to determine whether a package is of type MSBuildSdk.
DisplayPackage view modified to show specific instructions for SDK types in project files as per #8800
* Changed "Include" to correct attribute "Name" for SDK package type
Co-authored-by: Advay Tandon <82980589+advay26@users.noreply.github.com>
Co-authored-by: lyndaidaii <64443925+lyndaidaii@users.noreply.github.com> |
455,736 | 19.10.2022 16:16:10 | 25,200 | 61e016974cae06783e7253d1d450483511901172 | Fix bug around handling security advisories with 100 or more affected packages
The original implementation used a securityAdvisory(databaseId) query which no longer exists. This switches to using GHSA ID as the parameter. | [
{
"change_type": "MODIFY",
"old_path": "src/GitHubVulnerabilities2Db/Collector/AdvisoryQueryBuilder.cs",
"new_path": "src/GitHubVulnerabilities2Db/Collector/AdvisoryQueryBuilder.cs",
"diff": "using System;\nusing System.Linq;\nusing GitHubVulnerabilities2Db.GraphQL;\n+using Newtonsoft.Json;\nnamespa... | C# | Apache License 2.0 | nuget/nugetgallery | Fix bug around handling security advisories with 100 or more affected packages (#9279)
The original implementation used a securityAdvisory(databaseId) query which no longer exists. This switches to using GHSA ID as the parameter. |
455,741 | 27.10.2022 09:58:18 | 25,200 | 502039ef9351770e035c943edf4795c40c502e04 | correct link for email of new account verification | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Controllers/OrganizationsController.cs",
"new_path": "src/NuGetGallery/Controllers/OrganizationsController.cs",
"diff": "@@ -68,7 +68,7 @@ protected override Task SendNewAccountEmailAsync(User account)\nvar message = new NewAccountMessage(\nMe... | C# | Apache License 2.0 | nuget/nugetgallery | correct link for email of new account verification (#9284) |
455,754 | 28.10.2022 07:53:09 | -36,000 | ac65151a6650d2b55a9d628c13274553d04b6e6f | make support request issues prioritize normalized version | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery.Core/NuGetVersionExtensions.cs",
"new_path": "src/NuGetGallery.Core/NuGetVersionExtensions.cs",
"diff": "// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\nusing System.Text.Regular... | C# | Apache License 2.0 | nuget/nugetgallery | make support request issues prioritize normalized version (#9285) |
455,736 | 03.11.2022 11:55:38 | 25,200 | 4a96d3c55777515a7dc81e9f57d9bdd2af563a4c | Return 404 when the null version is provided to the license endpoint
Address | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Controllers/PackagesController.cs",
"new_path": "src/NuGetGallery/Controllers/PackagesController.cs",
"diff": "@@ -1174,6 +1174,11 @@ public virtual ActionResult AtomFeed(string id, bool prerel = true)\n[HttpGet]\npublic virtual async Task<Act... | C# | Apache License 2.0 | nuget/nugetgallery | Return 404 when the null version is provided to the license endpoint (#9297)
Address https://github.com/NuGet/NuGetGallery/issues/9295 |
455,736 | 07.11.2022 15:16:12 | 28,800 | 65da0c0175bc3a86884967739b1cf0b4ad3ffb58 | Change VerifyGitHubVulnerabilities into a job
Progress on | [
{
"change_type": "MODIFY",
"old_path": "src/GitHubVulnerabilities2Db/GitHubVulnerabilities2Db.csproj",
"new_path": "src/GitHubVulnerabilities2Db/GitHubVulnerabilities2Db.csproj",
"diff": "<Version>2.106.0</Version>\n</PackageReference>\n</ItemGroup>\n- <ItemGroup>\n- <Content Include=\"Scripts\\nssm... | C# | Apache License 2.0 | nuget/nugetgallery | Change VerifyGitHubVulnerabilities into a job (#9298)
Progress on https://github.com/NuGet/Engineering/issues/4512 |
455,754 | 09.11.2022 07:25:04 | -36,000 | a9d6c6153885501730f9ef38bf9639dc13e3861f | Swap Package manager and dotnet CLI tabs in display package UI, making dotnet CLI the default | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"new_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"diff": "{\npackageManagers = new PackageManagerViewModel[]\n{\n+ new PackageManagerViewModel(\".NET CLI\")\n+ {\n+ Id = \"dotnet-cli\"... | C# | Apache License 2.0 | nuget/nugetgallery | Swap Package manager and dotnet CLI tabs in display package UI, making dotnet CLI the default (#9302) |
455,778 | 15.11.2022 01:45:40 | 0 | f472850325992ea213b272069ef1c5d5254b1b69 | [A11y] Removed incorrect role attribute from breadcrumb headings | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/App_Code/ViewHelpers.cshtml",
"new_path": "src/NuGetGallery/App_Code/ViewHelpers.cshtml",
"diff": "@@ -588,10 +588,10 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);\n@helper Breadcrumb(bool showDivider, params Fu... | C# | Apache License 2.0 | nuget/nugetgallery | [A11y] Removed incorrect role attribute from breadcrumb headings (#9311) |
455,784 | 17.11.2022 15:22:37 | 28,800 | a65d4cf7a312228e0137c5d445937e08796bc2fc | make aria-hidden elements not focusable | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"new_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"diff": "@if (Model.IsVerified.HasValue && Model.IsVerified.Value)\n{\n<span class=\"prefix-reserve-title\" aria-hidden=\"true\">\n- <i... | C# | Apache License 2.0 | nuget/nugetgallery | make aria-hidden elements not focusable (#9314) |
455,740 | 21.11.2022 16:26:45 | -3,600 | 3db28166d7943f7812a86dfb3a40e3f0047384cd | Changed `dotnet new` example
The syntax has changed in .NET 7. Since .NET 7 is GA'd and is being actively adopted, we'll update NuGet.org to reflect that. | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"new_path": "src/NuGetGallery/Views/Packages/DisplayPackage.cshtml",
"diff": "{\nId = \"dotnet-cli\",\nCommandPrefix = \"> \",\n- InstallPackageCommands = new [] { string.Format(\"dotnet new --install {0}... | C# | Apache License 2.0 | nuget/nugetgallery | Changed `dotnet new` example (#9309)
Co-authored-by: Joel Verhagen <jver@microsoft.com>
The syntax has changed in .NET 7. Since .NET 7 is GA'd and is being actively adopted, we'll update NuGet.org to reflect that. |
455,736 | 12.12.2022 10:40:17 | 28,800 | 3f92a094e1cb0878a6e0da191805fbfe64b1eee8 | Audit the AddCredential action after we commit to the DB
Resolve | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery.Services/Authentication/AuthenticationService.cs",
"new_path": "src/NuGetGallery.Services/Authentication/AuthenticationService.cs",
"diff": "@@ -473,6 +473,9 @@ public virtual async Task ReplaceCredential(User user, Credential credential)\n{\n... | C# | Apache License 2.0 | nuget/nugetgallery | Audit the AddCredential action after we commit to the DB (#9324)
Resolve https://github.com/NuGet/Engineering/issues/4660 |
455,736 | 14.12.2022 16:27:27 | 28,800 | e031d697f49eec9975cc586cb15cd29868c118d3 | Selectively render the vulnerable element on manage packages page
Progress on | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Scripts/gallery/common.js",
"new_path": "src/NuGetGallery/Scripts/gallery/common.js",
"diff": "nuget.setPopovers = function () {\nvar popoverElement = $(this);\n- var popoverElementDom = popoverElement.get(0);\n+ var popoverElementDom = this;\... | C# | Apache License 2.0 | nuget/nugetgallery | Selectively render the vulnerable element on manage packages page (#9328)
Progress on https://github.com/NuGet/NuGetGallery/issues/5877 |
455,779 | 26.12.2022 23:23:09 | -28,800 | db1bdb26b720e76a761d686cde1e1b53902f3ce0 | Add document about how to deploy locally | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -27,9 +27,26 @@ Now run the NuGet Gallery:\nRefer to [our documentation](./docs/) for information on how to develop the frontend, use AAD, and more.\n## Deploy\n+### Deploy to Azure\nYou will find instructions o... | C# | Apache License 2.0 | nuget/nugetgallery | Add document about how to deploy locally (#9333) |
455,736 | 03.01.2023 14:09:51 | 21,600 | e8c507babf86a5750214b024aedd652dc205eb84 | Move the error message container outside of the Upload section
Fix | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Views/Packages/UploadPackage.cshtml",
"new_path": "src/NuGetGallery/Views/Packages/UploadPackage.cshtml",
"diff": "<a href=\"https://docs.microsoft.com/nuget/create-packages/package-authoring-best-practices\" alt=\"Best Practices\" aria-label=... | C# | Apache License 2.0 | nuget/nugetgallery | Move the error message container outside of the Upload section (#9338)
Fix https://github.com/NuGet/NuGetGallery/issues/9336 |
455,736 | 09.01.2023 09:25:30 | 18,000 | d18bf1c5ea78d472bc43553055a9560562c18037 | Remove the client secret from AAD V2 authenticator
We were only ever using the id_token which contains enough detail for NuGet.org sign in. The code response is not used.
Progress on | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery.Services/Authentication/Providers/AzureActiveDirectoryV2/AzureActiveDirectoryV2Authenticator.cs",
"new_path": "src/NuGetGallery.Services/Authentication/Providers/AzureActiveDirectoryV2/AzureActiveDirectoryV2Authenticator.cs",
"diff": "@@ -101,... | C# | Apache License 2.0 | nuget/nugetgallery | Remove the client secret from AAD V2 authenticator (#9340)
We were only ever using the id_token which contains enough detail for NuGet.org sign in. The code response is not used.
Progress on https://github.com/NuGet/Engineering/issues/4099 |
455,738 | 10.01.2023 14:59:27 | 21,600 | ced00b48fb091d83469a89b122d9dcd0e975081c | Removes en-us to improve documentation localization | [
{
"change_type": "MODIFY",
"old_path": ".github/ISSUE_TEMPLATE/NUGETORG_ISSUE.yml",
"new_path": ".github/ISSUE_TEMPLATE/NUGETORG_ISSUE.yml",
"diff": "@@ -10,9 +10,9 @@ body:\nThe more detail you provide, the more likely it will be for us to be able to identify what is going on and how to solve it!\n... | C# | Apache License 2.0 | nuget/nugetgallery | Removes en-us to improve documentation localization (#9325) |
455,784 | 11.01.2023 15:36:42 | 28,800 | b8c3912635ceb31a55ac5234877b4c049a8e4f8c | remove aria-expanded attribute | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery/Scripts/gallery/async-file-upload.js",
"new_path": "src/NuGetGallery/Scripts/gallery/async-file-upload.js",
"diff": "var reportContainerElement = document.createElement(\"div\");\n$(reportContainerElement).attr(\"id\", \"verify-package-block\"... | C# | Apache License 2.0 | nuget/nugetgallery | remove aria-expanded attribute (#9348) |
455,744 | 26.01.2023 12:38:48 | 28,800 | 92ae5510c9462fa377ae36d99904a691fcfa81bd | More logging for downloads service. | [
{
"change_type": "MODIFY",
"old_path": "src/GitHubVulnerabilities2Db/Gallery/ThrowingTelemetryService.cs",
"new_path": "src/GitHubVulnerabilities2Db/Gallery/ThrowingTelemetryService.cs",
"diff": "@@ -400,5 +400,13 @@ public IDisposable TrackAsyncSqlConnectionCreationDuration()\n{\nthrow new NotImple... | C# | Apache License 2.0 | nuget/nugetgallery | More logging for downloads service. (#9361) |
455,781 | 30.01.2023 15:09:19 | 21,600 | 6f0bd1efd43017f5c0f8abb401d3bed215da9493 | net6.0-windows7 compatibility added. | [
{
"change_type": "MODIFY",
"old_path": "src/NuGetGallery.Core/Frameworks/FrameworkCompatibilityService.cs",
"new_path": "src/NuGetGallery.Core/Frameworks/FrameworkCompatibilityService.cs",
"diff": "@@ -61,6 +61,11 @@ public ISet<NuGetFramework> GetCompatibleFrameworks(IEnumerable<NuGetFramework>\n}\... | C# | Apache License 2.0 | nuget/nugetgallery | net6.0-windows7 compatibility added. (#9364) |
455,754 | 07.02.2023 06:33:41 | -36,000 | 3f692c3ca34aafe4668693aed0714dcbf900c082 | AAD account checks on packages for safety reports | [
{
"change_type": "MODIFY",
"old_path": "src/AccountDeleter/EmptyFeatureFlagService.cs",
"new_path": "src/AccountDeleter/EmptyFeatureFlagService.cs",
"diff": "@@ -276,6 +276,11 @@ public bool IsShowReportAbuseSafetyChangesEnabled()\nthrow new NotImplementedException();\n}\n+ public bool IsAllowAadCon... | C# | Apache License 2.0 | nuget/nugetgallery | AAD account checks on packages for safety reports (#9360) |
393,978 | 16.03.2017 18:31:31 | 25,200 | 128c1dd9c50641661d3aa74a9187b177b0841f05 | pass ret to definition_helpers in APISpec.definition | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -219,7 +219,7 @@ class APISpec(object):\n# Execute all helpers from plugins\nfor func in self._definition_helpers:\ntry:\n- ret.update(func(self, name, **kwargs))\n+ ret.update(func(self, name, defin... | Python | MIT License | marshmallow-code/apispec | pass ret to definition_helpers in APISpec.definition |
393,978 | 17.03.2017 10:14:41 | 25,200 | 83c4917c9b14edf7b33117f0315cb4f5f202bb1d | edited doc, added test | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -269,8 +269,8 @@ class APISpec(object):\n- Return a `dict` representation of the definition's Schema object.\nThe helper may define any named arguments after the `name` argument.\n- In `kwargs`, you ... | Python | MIT License | marshmallow-code/apispec | edited doc, added test |
394,026 | 17.04.2017 13:02:46 | 25,200 | ebb7328e2d1dab2ecdb2de797ba881a64c9003d1 | sort list of reqd fields | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -502,6 +502,8 @@ def fields2jsonschema(fields, schema=None, spec=None, use_refs=True, dump=True,\nif not partial or (is_collection(partial) and field_name not in... | Python | MIT License | marshmallow-code/apispec | sort list of reqd fields |
394,026 | 17.04.2017 13:28:05 | 25,200 | ca28f03ff83eb5e765cbface3892fc3e1d557a28 | do not add empty required if none already | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -502,7 +502,8 @@ def fields2jsonschema(fields, schema=None, spec=None, use_refs=True, dump=True,\nif not partial or (is_collection(partial) and field_name not in... | Python | MIT License | marshmallow-code/apispec | do not add empty required if none already |
394,012 | 26.05.2017 16:38:08 | 10,800 | 85077553e2d0a56f2dac04c0410645bac65e5a8f | adding bottle framework support | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -33,6 +33,7 @@ nosetests.xml\n.mr.developer.cfg\n.project\n.pydevproject\n+.idea\n# Complexity\noutput/*.html\n"
},
{
"change_type": "MODIFY",
"old_path": "AUTHORS.rst",
"new_path": "AUTHORS.rs... | Python | MIT License | marshmallow-code/apispec | adding bottle framework support |
394,012 | 30.05.2017 00:57:49 | 10,800 | 575286110844a2a2d9df4aa45d7f28208bdcd095 | minor changes - lint error | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -22,6 +22,7 @@ lib64\npip-log.txt\n# Unit test / coverage reports\n+.cache\n.coverage\n.tox\nnosetests.xml\n"
},
{
"change_type": "MODIFY",
"old_path": "apispec/ext/bottle.py",
"new_path": "api... | Python | MIT License | marshmallow-code/apispec | minor changes - lint error |
394,012 | 30.05.2017 17:38:43 | 10,800 | d4dd15ad2f7b438fecc278d876a9de2b9aeaa452 | fix python 2.7 compatibility import | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/bottle.py",
"new_path": "apispec/ext/bottle.py",
"diff": "@@ -21,6 +21,7 @@ object to `add_path`.\nprint(spec.to_dict()['paths'])\n# {'/gists/{gist_id}': {'get': {'responses': {200: {'schema': {'$ref': '#/definitions/Gist'}}}}}}\n\"\"\"\n+from __fu... | Python | MIT License | marshmallow-code/apispec | fix python 2.7 compatibility import |
394,017 | 06.06.2017 16:02:07 | -36,000 | 57031a1d68be17e9ca9906b29b382c7956220f54 | Correct definition to match output in document.
Code was malformed, with un-even brackets and output was not matching. | [
{
"change_type": "MODIFY",
"old_path": "docs/quickstart.rst",
"new_path": "docs/quickstart.rst",
"diff": "@@ -26,7 +26,7 @@ Add definitions to your spec using `definition <apispec.APISpec.definition>`.\nspec.definition('Gist', properties={\n'id': {'type': 'integer', 'format': 'int64'},\n- 'content':... | Python | MIT License | marshmallow-code/apispec | Correct definition to match output in document.
Code was malformed, with un-even brackets and output was not matching. |
394,018 | 23.06.2017 15:55:40 | -7,200 | 5806528b8a1dda158a70b57d166f50be73bc6479 | correctly fill default parameter if default is boolean False | [
{
"change_type": "MODIFY",
"old_path": "AUTHORS.rst",
"new_path": "AUTHORS.rst",
"diff": "@@ -31,3 +31,4 @@ Contributors (chronological)\n- Daniel Radetsky `@dradetsky <https://github.com/dradetsky>`_\n- Lucas Coutinho `@lucasrc <https://github.com/lucasrc>`_\n- `@lamiskin <https://github.com/lamisk... | Python | MIT License | marshmallow-code/apispec | correctly fill default parameter if default is boolean False |
394,001 | 09.07.2017 21:06:22 | -32,400 | af462f94f503c02f2702d040f22e609239a5c6cc | Generate parameters specification by marshmallow schema
Implement the proposal in
* generate single entry by "in: body"
* generate array of primitive types otherwise | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -126,12 +126,27 @@ def schema_path_helper(spec, view, **kwargs):\nreturn\noperations = operations.copy()\nfor operation in operations.values():\n+ if 'paramete... | Python | MIT License | marshmallow-code/apispec | Generate parameters specification by marshmallow schema
Implement the proposal in
https://github.com/marshmallow-code/apispec/issues/127
* generate single entry by "in: body"
* generate array of primitive types otherwise |
394,001 | 09.07.2017 22:56:44 | -32,400 | dd2e6f0dd3b3e4d4f7213c18652ccd4e67a68c1a | Remove unused input for test_schema_in_docstring_expand_parameters | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -101,10 +101,6 @@ class TestOperationHelper:\nparameters:\n- in: body\nschema: tests.schemas.PetSchema\n- responses:\n- 200:\n- schema: tests.schemas.PetSchema\n- descript... | Python | MIT License | marshmallow-code/apispec | Remove unused input for test_schema_in_docstring_expand_parameters |
394,001 | 09.07.2017 23:03:30 | -32,400 | fa9de714109f2d776a2714efb923df4411efa4d3 | Add example of parameters with schema | [
{
"change_type": "MODIFY",
"old_path": "docs/using_plugins.rst",
"new_path": "docs/using_plugins.rst",
"diff": "@@ -68,6 +68,9 @@ Our application will have a marshmallow `Schema <marshmallow.Schema>` for gists.\nfrom marshmallow import Schema, fields\n+ class GistParameter(Schema):\n+ gist_id = fiel... | Python | MIT License | marshmallow-code/apispec | Add example of parameters with schema |
393,986 | 10.07.2017 23:00:41 | 21,600 | 6592c8de2ab0e67b4dc7317dd1369ea04b868157 | Add support for Flask MethodView to apispec.ext.flask
Addresses issues and | [
{
"change_type": "MODIFY",
"old_path": "AUTHORS.rst",
"new_path": "AUTHORS.rst",
"diff": "@@ -32,3 +32,4 @@ Contributors (chronological)\n- Lucas Coutinho `@lucasrc <https://github.com/lucasrc>`_\n- `@lamiskin <https://github.com/lamiskin>`_\n- Florian Scheffler `@nebularazer <https://github.com/neb... | Python | MIT License | marshmallow-code/apispec | Add support for Flask MethodView to apispec.ext.flask
Addresses issues #85 and #125. |
394,005 | 29.06.2017 15:45:17 | -10,800 | eea26fb586a078ad5f1bedb7bdaf8486e8be5218 | Allow default value for fields to be callable. | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -232,6 +232,9 @@ def field2property(field, spec=None, use_refs=True, dump=True, name=None):\ndefault = field.default if dump else field.missing\nif default is no... | Python | MIT License | marshmallow-code/apispec | Allow default value for fields to be callable. |
394,001 | 15.07.2017 00:51:53 | -32,400 | fdd97dd9b97677dca86e3db5de307fec02348e7b | use operations obtained by preceding extension in ext.marshmallow | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -182,6 +182,7 @@ class APISpec(object):\nif isinstance(ret, Path):\nret.path = normalize_path(ret.path)\npath.update(ret)\n+ operations = ret.operations\nif not path.path:\nraise APISpecError('Path t... | Python | MIT License | marshmallow-code/apispec | use operations obtained by preceding extension in ext.marshmallow |
394,001 | 18.07.2017 11:59:56 | -32,400 | 802d5f2713e76e6ded2819a0e6bb13c385271067 | use ref in parameters if available | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -127,21 +127,21 @@ def schema_path_helper(spec, view, **kwargs):\noperations = operations.copy()\nfor operation in operations.values():\nif 'parameters' in ope... | Python | MIT License | marshmallow-code/apispec | use ref in parameters if available |
394,001 | 02.08.2017 18:38:26 | -32,400 | 33b054ca72d1a5e21fa59176f3778439b05e9556 | integrate path_helper function for method_view into path_from_view | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/flask.py",
"new_path": "apispec/ext/flask.py",
"diff": "@@ -55,7 +55,7 @@ Passing a method view function::\napp.test_request_context().push()\nmethod_view = GistApi.as_view('gists')\napp.add_url_rule(\"/gists\", view_func=method_view)\n- spec.add_p... | Python | MIT License | marshmallow-code/apispec | integrate path_helper function for method_view into path_from_view |
394,001 | 02.08.2017 18:45:45 | -32,400 | 217ce4cd68fbabce046e752e237b567ed8e0eaaa | path helper functions are integrated to the one | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/flask.py",
"new_path": "apispec/ext/flask.py",
"diff": "# -*- coding: utf-8 -*-\n-\"\"\"Flask plugin. Includes path helpers that allow you to pass a view\n+\"\"\"Flask plugin. Includes a path helper that allows you to pass a view\nfunction to `add_... | Python | MIT License | marshmallow-code/apispec | path helper functions are integrated to the one |
394,033 | 08.08.2017 17:14:23 | -10,800 | b5e93a9b26268a8f3ceadef8491c15335c2452fc | Fix swagger location mapping for default_in param in property2parameter | [
{
"change_type": "MODIFY",
"old_path": "AUTHORS.rst",
"new_path": "AUTHORS.rst",
"diff": "@@ -35,3 +35,4 @@ Contributors (chronological)\n- Vadim Radovel `@NightBlues <https://github.com/NightBlues>`_\n- Yoichi NAKAYAMA `@yoichi <https://github.com/yoichi>`_\n- Douglas Anderson `@djanderson <https:/... | Python | MIT License | marshmallow-code/apispec | Fix swagger location mapping for default_in param in property2parameter |
394,026 | 03.08.2017 19:08:27 | 25,200 | 57b7029775349accca432c9af442d90622e67713 | simple decorator test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "import pytest\nimport json\n+from marshmallow.fields import Field, DateTime\n+\nfrom apispec import APISpec\nfrom apispec.ext.marshmallow import swagger\nfrom .schemas import... | Python | MIT License | marshmallow-code/apispec | simple decorator test |
394,026 | 03.08.2017 19:14:25 | 25,200 | 4653add23e1b68aa8cc3022be019612f035aa224 | im a author now! | [
{
"change_type": "MODIFY",
"old_path": "AUTHORS.rst",
"new_path": "AUTHORS.rst",
"diff": "@@ -36,3 +36,4 @@ Contributors (chronological)\n- Yoichi NAKAYAMA `@yoichi <https://github.com/yoichi>`_\n- Douglas Anderson `@djanderson <https://github.com/djanderson>`_\n- Marat Sharafutdinov `@decaz <https:... | Python | MIT License | marshmallow-code/apispec | im a author now! |
394,026 | 03.08.2017 19:21:16 | 25,200 | c816ad5614926e1dc7080495244ae92131044101 | at least some dox | [
{
"change_type": "MODIFY",
"old_path": "docs/using_plugins.rst",
"new_path": "docs/using_plugins.rst",
"diff": "@@ -194,6 +194,24 @@ If your API uses `method-based dispatching <http://flask.pocoo.org/docs/0.12/vie\n# 'post': {}}}\n#\n+Note that by default, apispec only knows how to set the type of\n... | Python | MIT License | marshmallow-code/apispec | at least some dox |
394,026 | 03.08.2017 19:25:47 | 25,200 | f4acd57170d7d172670cf8ff6d824bf268d387eb | wait, thats not how you python | [
{
"change_type": "MODIFY",
"old_path": "docs/using_plugins.rst",
"new_path": "docs/using_plugins.rst",
"diff": "@@ -203,7 +203,7 @@ schemas with custom fields, use the\nfrom marshmallow.fields import Integer\n- @map_to_swagger_field(Integer):\n+ @map_to_swagger_field(Integer)\nclass MyCustomFieldTha... | Python | MIT License | marshmallow-code/apispec | wait, thats not how you python |
394,026 | 07.08.2017 11:42:24 | 25,200 | a4a772ff6e81f509f72e23a0f0e553fe817a5ffa | fix ex type, msg | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -58,7 +58,7 @@ def map_to_swagger_field(*args):\nelif len(args) == 2:\nswagger_type_field = args\nelse:\n- raise ArgumentError('pass core marshmallow field type ... | Python | MIT License | marshmallow-code/apispec | fix ex type, msg |
394,026 | 07.08.2017 11:51:19 | 25,200 | 8255058182c91ce8387f18891ce797c36c4ca018 | error on bad arg | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -48,6 +48,11 @@ class TestCustomField:\nclass CustomNameB(Field):\npass\n+ with pytest.raises(TypeError):\n+ @swagger.map_to_swagger_field('integer')\n+ class BadCustomFie... | Python | MIT License | marshmallow-code/apispec | error on bad arg |
394,026 | 07.08.2017 14:28:25 | 25,200 | c540eda93686e4d9487f9d8cc58f38233cd3c74c | oops, type not reqd in both cases | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -88,7 +88,7 @@ def _observed_name(field, name):\ndef _get_json_type_for_field(field):\n- if hasattr(type(field), CUSTOM_FIELD_MAPPING_ATTR):\n+ if hasattr(field,... | Python | MIT License | marshmallow-code/apispec | oops, type not reqd in both cases |
394,026 | 08.08.2017 11:08:16 | 25,200 | 479128a682ce7a81f30e7462a68dbd5cae4a7ae2 | redundant, and is fine either way | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -41,7 +41,7 @@ FIELD_MAPPING = {\nmarshmallow.fields.List: ('array', None),\n}\n-CUSTOM_FIELD_MAPPING_ATTR = '__custom_swagger_field_mapping'\n+CUSTOM_FIELD_MAPP... | Python | MIT License | marshmallow-code/apispec | redundant, and is fine either way |
394,026 | 09.08.2017 11:58:33 | 25,200 | 624347adc6606bb600ed96290e222c6411f3edc9 | _field -> _type | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -44,7 +44,7 @@ FIELD_MAPPING = {\nCUSTOM_FIELD_MAPPING_ATTR = '__swagger_field_mapping'\n-def map_to_swagger_field(*args):\n+def map_to_swagger_type(*args):\n\"\... | Python | MIT License | marshmallow-code/apispec | _field -> _type |
393,986 | 15.08.2017 20:46:43 | 21,600 | 1271fa493fad692c29ceab44c40cf53e3f8b07b1 | Don't catch/pass YAMLError when parsing docstring fails.
The current behavior is to swallow any parse errors silently, which makes
trying to add more than a trivial apispec docstring confusing and frustrating.
See issue for more discussion. | [
{
"change_type": "MODIFY",
"old_path": "apispec/utils.py",
"new_path": "apispec/utils.py",
"diff": "@@ -60,10 +60,7 @@ def load_yaml_from_docstring(docstring):\nyaml_string = \"\\n\".join(split_lines[cut_from:])\nyaml_string = dedent(yaml_string)\n- try:\nreturn yaml.load(yaml_string)\n- except yaml... | Python | MIT License | marshmallow-code/apispec | Don't catch/pass YAMLError when parsing docstring fails.
The current behavior is to swallow any parse errors silently, which makes
trying to add more than a trivial apispec docstring confusing and frustrating.
See issue #135 for more discussion. |
394,001 | 30.08.2017 23:39:59 | -32,400 | ea581ed6a9c02a62231aa1795d35478f2f6353aa | use "with" statement to recover context after add_path | [
{
"change_type": "MODIFY",
"old_path": "README.rst",
"new_path": "README.rst",
"diff": "@@ -68,12 +68,10 @@ Example Application\npet = get_random_pet()\nreturn jsonify(PetSchema().dump(pet).data)\n- ctx = app.test_request_context()\n- ctx.push()\n-\n# Register entities and paths\nspec.definition('Ca... | Python | MIT License | marshmallow-code/apispec | use "with" statement to recover context after add_path |
394,001 | 30.08.2017 23:44:14 | -32,400 | c8a687db5bb3942d2f849b52b1efa12da6d26ee3 | bottle does not have test_request_context | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/bottle.py",
"new_path": "apispec/ext/bottle.py",
"diff": "@@ -17,7 +17,6 @@ to `add_path`.\n'''\nreturn 'detail for gist {}'.format(gist_id)\n- app.test_request_context().push()\nspec.add_path(view=gist_detail)\nprint(spec.to_dict()['paths'])\n# {'... | Python | MIT License | marshmallow-code/apispec | bottle does not have test_request_context |
394,001 | 03.09.2017 07:35:45 | -32,400 | a4092b6a90041cc68fa4146a3dd378a89d78c09d | Skip non-dict elements on resolve to avoid AttributeError
> for response in operation.get('responses', {}).values():
E AttributeError: 'str' object has no attribute 'get'
apispec/ext/marshmallow/__init__.py:131: AttributeError | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -126,6 +126,8 @@ def schema_path_helper(spec, view=None, **kwargs):\nreturn\noperations = operations.copy()\nfor operation in operations.values():\n+ if not is... | Python | MIT License | marshmallow-code/apispec | Skip non-dict elements on resolve to avoid AttributeError
> for response in operation.get('responses', {}).values():
E AttributeError: 'str' object has no attribute 'get'
apispec/ext/marshmallow/__init__.py:131: AttributeError |
394,001 | 03.09.2017 08:32:32 | -32,400 | 5d205ebc96a148e05b2c150f81315198727414a6 | Extract operation resolvers and execute them after path helpers
Result of path helper of web framework extension will be resolved
by marshmallow extension regardless of the order of extensions. | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -108,6 +108,7 @@ class APISpec(object):\nself.plugins = {}\nself._definition_helpers = []\nself._path_helpers = []\n+ self._operation_resolvers = []\n# {'get': {200: [my_helper]}}\nself._response_hel... | Python | MIT License | marshmallow-code/apispec | Extract operation resolvers and execute them after path helpers
Result of path helper of web framework extension will be resolved
by marshmallow extension regardless of the order of extensions. |
394,001 | 03.09.2017 10:37:23 | -32,400 | a16ff2fd7d5805e1fff9b128f4973c823bedbb13 | remove duplicate test covered by test_ext_order.py | [
{
"change_type": "DELETE",
"old_path": "tests/test_ext_tornado_marshmallow.py",
"new_path": null,
"diff": "-# -*- coding: utf-8 -*-\n-import pytest\n-\n-from apispec import APISpec\n-from apispec.ext.marshmallow import swagger\n-from tornado.web import RequestHandler\n-from .schemas import PetSchema... | Python | MIT License | marshmallow-code/apispec | remove duplicate test covered by test_ext_order.py |
394,001 | 03.09.2017 20:56:15 | -32,400 | 695396d69ba42dfb7cdc57d172e2874b73af3abf | modify method name to clarify the purpose | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -234,7 +234,7 @@ class TestOperationHelper:\n'items': {'$ref': '#/definitions/Pet'}\n}\n- def test_non_http_method_in_docstring(self, spec):\n+ def test_other_than_http_me... | Python | MIT License | marshmallow-code/apispec | modify method name to clarify the purpose |
394,001 | 10.09.2017 17:37:31 | -32,400 | 623fef3da0353a359d6a27c4e41f1cb786384ff5 | Handle multiple fields with location='json' correctly.
Fixes
* Merge results from field2parameter.
* Modify input data for test_field_required since required
fields in body are treated differently. | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -390,21 +390,28 @@ def fields2parameters(fields, schema=None, spec=None, use_refs=True,\nexclude_fields = getattr(getattr(schema, 'Meta', None), 'exclude', [])\n... | Python | MIT License | marshmallow-code/apispec | Handle multiple fields with location='json' correctly.
Fixes https://github.com/marshmallow-code/apispec/issues/75
* Merge results from field2parameter.
* Modify input data for test_field_required since required
fields in body are treated differently. |
394,001 | 11.09.2017 06:31:53 | -32,400 | 6a80b6652df17fd1e8bf3af1937146326af51cc2 | Don't assume the dict iteration order in the test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_swagger.py",
"new_path": "tests/test_swagger.py",
"diff": "@@ -107,7 +107,9 @@ class TestMarshmallowFieldToSwagger:\nassert 'field2' in res[0]['schema']['properties']\nassert 'field3' in res[0]['schema']['properties']\nassert 'required' in res[0]['s... | Python | MIT License | marshmallow-code/apispec | Don't assume the dict iteration order in the test |
394,001 | 11.09.2017 06:43:39 | -32,400 | 8374cf072273c9f5f80ab4ea60a10c36fb324e46 | Remove comparison with default_in='body'
In general they differ at res[0]['schema']['required'] | [
{
"change_type": "MODIFY",
"old_path": "tests/test_swagger.py",
"new_path": "tests/test_swagger.py",
"diff": "@@ -110,7 +110,6 @@ class TestMarshmallowFieldToSwagger:\nassert len(res[0]['schema']['required']) == 2\nassert 'field1' in res[0]['schema']['required']\nassert 'field2' in res[0]['schema'][... | Python | MIT License | marshmallow-code/apispec | Remove comparison with default_in='body'
In general they differ at res[0]['schema']['required'] |
394,033 | 03.10.2017 14:21:58 | -10,800 | 4ed91d68c3e0c146f84d804a2e5acf88cc8a8faa | Fix swagger location mapping for default_in param in fields2parameters | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -369,7 +369,8 @@ def fields2parameters(fields, schema=None, spec=None, use_refs=True,\nhttps://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#p... | Python | MIT License | marshmallow-code/apispec | Fix swagger location mapping for default_in param in fields2parameters |
394,000 | 02.10.2017 22:31:06 | 14,400 | cb763be3c3763eff8dc6a247ad93ffef47a31c5c | maps validate.Equal to property with enum 1 choice | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -112,15 +112,20 @@ def field2choices(field):\n:param Field field: A marshmallow field.\n:rtype: set\n\"\"\"\n- validators = [\n+ comparable = {\n+ validator.comp... | Python | MIT License | marshmallow-code/apispec | maps validate.Equal to property with enum 1 choice |
394,001 | 29.10.2017 10:52:07 | -32,400 | c4181d49bc633dd175383928cfdefef0c6dd3fce | Update total number of helper function types. | [
{
"change_type": "MODIFY",
"old_path": "docs/writing_plugins.rst",
"new_path": "docs/writing_plugins.rst",
"diff": "@@ -8,7 +8,7 @@ Helper Functions\nPlugins are comprised of \"helper\" functions that augment the behavior of `apispec.APISpec` methods.\n-There are three types of helper functions:\n+T... | Python | MIT License | marshmallow-code/apispec | Update total number of helper function types. |
394,001 | 30.10.2017 21:23:22 | -32,400 | d2cae56d32d5e011104a97425b13cd65544d9aca | rename hook to be consistent with existing ones | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -108,7 +108,7 @@ class APISpec(object):\nself.plugins = {}\nself._definition_helpers = []\nself._path_helpers = []\n- self._operation_resolvers = []\n+ self._operation_helpers = []\n# {'get': {200: [... | Python | MIT License | marshmallow-code/apispec | rename hook to be consistent with existing ones |
394,000 | 05.12.2017 13:29:10 | 18,000 | d46a170823f045d4efcc6c07474e6f607f26aa74 | fixes a WindowsError
The arguments for subprocess.check_output are hard coded so running
in shell is safe. | [
{
"change_type": "MODIFY",
"old_path": "apispec/utils.py",
"new_path": "apispec/utils.py",
"diff": "@@ -96,6 +96,7 @@ def validate_swagger(spec):\nsubprocess.check_output(\n['swagger-tools', 'validate', fp.name],\nstderr=subprocess.STDOUT,\n+ shell=True,\n)\nexcept subprocess.CalledProcessError as e... | Python | MIT License | marshmallow-code/apispec | fixes a WindowsError
The arguments for subprocess.check_output are hard coded so running
in shell is safe. |
393,992 | 08.11.2017 16:53:21 | -3,600 | d5f9e929cb58032cb895efb6a0ea8f8abfa235ce | Permit auto generation of definition schema names | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -91,15 +91,25 @@ class APISpec(object):\nSee https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject\n:param \\*\\*dict options: Optional top-level keys\nSee https://githu... | Python | MIT License | marshmallow-code/apispec | Permit auto generation of definition schema names |
393,992 | 09.11.2017 08:56:15 | -3,600 | 0444fa992352398445070d31aae0785fdd218e66 | Temporary version for setup.py requirements | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -34,7 +34,7 @@ def read(fname):\nsetup(\nname='apispec',\n- version=__version__,\n+ version='0.25.4-algoo',\ndescription='A pluggable API specification generator. Currently supports the '\n'OpenAPI specification (... | Python | MIT License | marshmallow-code/apispec | Temporary version for setup.py requirements |
393,992 | 09.11.2017 16:25:48 | -3,600 | f4e7c6f6f9cf91c3b6fd421c4ec960049e9e7ee8 | apispec.ext.marshmallow.resolve_schema_dict: use spec only if given | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -165,7 +165,7 @@ def resolve_schema_dict(spec, schema, dump=True, use_instances=False):\n# Auto reference schema if available\nif schema_cls not in plug.get('r... | Python | MIT License | marshmallow-code/apispec | apispec.ext.marshmallow.resolve_schema_dict: use spec only if given |
393,992 | 09.11.2017 16:31:00 | -3,600 | 5170fc266867013080fdb4053aebefda69848bd4 | More info in doctring of apispec.core.APISpec about schema_name_resolver_callable parameter | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -91,7 +91,12 @@ class APISpec(object):\nSee https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject\n:param \\*\\*dict options: Optional top-level keys\nSee https://github... | Python | MIT License | marshmallow-code/apispec | More info in doctring of apispec.core.APISpec about schema_name_resolver_callable parameter |
393,992 | 09.11.2017 16:34:51 | -3,600 | a5431394b607def9847c42b2cb80f3ee64682263 | clean code of apispec.ext.marshmallow.resolve_schema_dict | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -166,12 +166,8 @@ def resolve_schema_dict(spec, schema, dump=True, use_instances=False):\n# Auto reference schema if available\nif schema_cls not in plug.get('... | Python | MIT License | marshmallow-code/apispec | clean code of apispec.ext.marshmallow.resolve_schema_dict |
393,992 | 13.11.2017 10:00:54 | -3,600 | 9451276a0b3b56370707af07145f1f4753be0f2a | add test about auto reference for marshmallow schemas | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -35,6 +35,45 @@ class TestDefinitionHelper:\nassert props['id']['type'] == 'integer'\nassert props['name']['type'] == 'string'\n+ @pytest.mark.parametrize('schema', [Analy... | Python | MIT License | marshmallow-code/apispec | add test about auto reference for marshmallow schemas |
393,992 | 13.11.2017 10:02:01 | -3,600 | ef47cbdb72c61cffaffd728ff44780badd1e5d2e | rename schema_name_resolver_callable in schema_name_resolver | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -91,11 +91,11 @@ class APISpec(object):\nSee https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject\n:param \\*\\*dict options: Optional top-level keys\nSee https://githu... | Python | MIT License | marshmallow-code/apispec | rename schema_name_resolver_callable in schema_name_resolver |
393,992 | 13.11.2017 10:04:00 | -3,600 | b189f96016f8a00b660f9628101138f2cd4850de | add test for no auto reference of schema marshmallow when resolver return None | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -167,6 +167,7 @@ def resolve_schema_dict(spec, schema, dump=True, use_instances=False):\nif schema_cls not in plug.get('refs', {}):\nif spec and spec.schema_na... | Python | MIT License | marshmallow-code/apispec | add test for no auto reference of schema marshmallow when resolver return None |
393,992 | 13.11.2017 10:06:54 | -3,600 | b0cfdf673abaa7be9127c568882d416ccde558be | flake8 compat | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -37,7 +37,8 @@ class TestDefinitionHelper:\n@pytest.mark.parametrize('schema', [AnalysisSchema, AnalysisSchema()])\ndef test_resolve_schema_dict_auto_reference(self, schem... | Python | MIT License | marshmallow-code/apispec | flake8 compat |
393,992 | 17.11.2017 11:07:07 | -3,600 | 7544c9bec01da89ecf0b2091bc43c76af1bb0f17 | swagger auto reference schemas: references on schema addition instead schema reading | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -34,6 +34,55 @@ from . import swagger\nNAME = 'apispec.ext.marshmallow'\n+def get_schema_instance(schema):\n+ \"\"\"Return schema instance for given schema (in... | Python | MIT License | marshmallow-code/apispec | swagger auto reference schemas: references on schema addition instead schema reading |
393,992 | 07.12.2017 11:17:23 | -3,600 | f1e1a1c4e18cf6abb1166f8c73a1aa350e445f49 | auto-refencement: auto-reference to when schema nested in list | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -69,10 +69,16 @@ def inspect_schema_for_auto_referencing(spec, original_schema_instance):\nplug['refs'] = {}\nfor field_name, field in original_schema_instance... | Python | MIT License | marshmallow-code/apispec | auto-refencement: auto-reference to when schema nested in list |
393,992 | 07.12.2017 11:34:23 | -3,600 | 61939ff20486dcc18359416d41ae664d89d8e1e0 | restore original version of apispec (commit error, it was for our fork) | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -34,7 +34,7 @@ def read(fname):\nsetup(\nname='apispec',\n- version='0.25.4-algoo',\n+ version=__version__,\ndescription='A pluggable API specification generator. Currently supports the '\n'OpenAPI specification (... | Python | MIT License | marshmallow-code/apispec | restore original version of apispec (commit error, it was for our fork) |
394,000 | 04.12.2017 21:35:57 | 18,000 | b4977a8218105672c5b67b76fc327f2e0e7e93cd | adds optional config param for OpenAPI version 3
This is an intial attempt to add basic support for OpenApi 3.
Based on the value of the openapi_version field, the APISpec.todict
places schemas either directly in "definitions" (v2) or in
"components/schemas" (v3)
References for nested Marshmallow schemas are also handled
See | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -16,7 +16,7 @@ VALID_METHODS = [\n'options',\n]\n-OPENAPI_VERSION = SWAGGER_VERSION = '2.0'\n+OPENAPI_VERSIONS = ('2.0', '3.0.0')\ndef clean_operations(operations):\n@@ -109,6 +109,7 @@ class APISpec... | Python | MIT License | marshmallow-code/apispec | adds optional config param for OpenAPI version 3
This is an intial attempt to add basic support for OpenApi 3.
Based on the value of the openapi_version field, the APISpec.todict
places schemas either directly in "definitions" (v2) or in
"components/schemas" (v3)
References for nested Marshmallow schemas are also handled
See https://blog.readme.io/an-example-filled-guide-to-swagger-3-2/ |
394,000 | 05.12.2017 13:14:31 | 18,000 | 1d221336d153b54ec28e47dbe6f5bf55fee78343 | adds parameters the appropriate location based on OpenAPI version | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -19,7 +19,7 @@ VALID_METHODS = [\nOPENAPI_VERSIONS = ('2.0', '3.0.0')\n-def clean_operations(operations):\n+def clean_operations(operations, openapi_version):\n\"\"\"Ensure that all parameters with \... | Python | MIT License | marshmallow-code/apispec | adds parameters the appropriate location based on OpenAPI version |
394,000 | 11.12.2017 22:32:22 | 18,000 | acf366ea1dc4e1586fa9b51569fa3faabc6a25bc | Validates OpenAPI version with distutils.version | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "\"\"\"Core apispec classes and functions.\"\"\"\nimport re\nfrom collections import OrderedDict\n+from distutils import version\nfrom apispec.compat import iterkeys\nfrom .exceptions import APISpecError... | Python | MIT License | marshmallow-code/apispec | Validates OpenAPI version with distutils.version |
394,000 | 11.12.2017 23:17:57 | 18,000 | 79cdbe29c136ec57c892f2b8ed23b7a1171f6203 | changes logic to use only the OpenAPI major verion
Now minor version numbers are used to determining the
placement of schemas and paramaters in the dictionary | [
{
"change_type": "MODIFY",
"old_path": "apispec/core.py",
"new_path": "apispec/core.py",
"diff": "@@ -18,7 +18,7 @@ VALID_METHODS = [\n]\n-def clean_operations(operations, openapi_version):\n+def clean_operations(operations, openapi_major_version):\n\"\"\"Ensure that all parameters with \"in\" equal... | Python | MIT License | marshmallow-code/apispec | changes logic to use only the OpenAPI major verion
Now minor version numbers are used to determining the
placement of schemas and paramaters in the dictionary |
394,000 | 11.12.2017 23:48:52 | 18,000 | 13f01667c9c50da31bb6b68730836da9aab68aae | fixes test on python 3 | [
{
"change_type": "MODIFY",
"old_path": "tests/test_core.py",
"new_path": "tests/test_core.py",
"diff": "@@ -41,7 +41,7 @@ class TestAPISpecInit:\nversion='1.0.0',\ninfo={'description': description},\nsecurity=[{'apiKey': []}],\n- openapi_version='no version'\n+ openapi_version='4.0' # 4.0 is not sup... | Python | MIT License | marshmallow-code/apispec | fixes test on python 3 |
394,000 | 02.01.2018 23:26:14 | 18,000 | 129b9c1878b08eccc8a204d7f1dc4c343cfea8a3 | resolve schemas from requestBody and response objects | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -192,10 +192,10 @@ def schema_operation_resolver(spec, operations, **kwargs):\ncontinue\nif 'parameters' in operation:\noperation['parameters'] = resolve_param... | Python | MIT License | marshmallow-code/apispec | resolve schemas from requestBody and response objects |
394,000 | 03.01.2018 11:36:45 | 18,000 | 3731f31bb4b311e71e87d58666dd27c7997e1a68 | adds support for validating OpenAPI 3 specs
Switches to using npm package check_api, which is a wrapper around
several API specification validators including OpenAPI 2 and 3.
swagger-tools is a depencency of check_api | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -8,7 +8,7 @@ python:\n- pypy\ninstall:\n- pip install -U .\n-- npm install -g swagger-tools\n+- npm install -g check_api\n- pip install -r dev-requirements.txt\nscript: invoke test\njobs:\n"
},
{
"ch... | Python | MIT License | marshmallow-code/apispec | adds support for validating OpenAPI 3 specs
Switches to using npm package check_api, which is a wrapper around
several API specification validators including OpenAPI 2 and 3.
swagger-tools is a depencency of check_api |
394,000 | 03.01.2018 13:35:53 | 18,000 | 0e009056d30abbab408765f9ee777b37b7b54937 | adds a test for OpenAPI 3 spec | [
{
"change_type": "MODIFY",
"old_path": "tests/test_swagger.py",
"new_path": "tests/test_swagger.py",
"diff": "@@ -498,6 +498,9 @@ class PetSchema(Schema):\ncategory = fields.Nested(CategorySchema, many=True, ref='#/definitions/Category')\nname = fields.Str()\n+class PetSchemaV3(Schema):\n+ category ... | Python | MIT License | marshmallow-code/apispec | adds a test for OpenAPI 3 spec |
394,002 | 05.03.2018 23:17:21 | 21,600 | 27598407e7a8b61d7daeb4f68902c0eb7f84015f | pass additional parameter info | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/__init__.py",
"new_path": "apispec/ext/marshmallow/__init__.py",
"diff": "@@ -203,8 +203,9 @@ def resolve_parameters(spec, parameters):\nif not isinstance(parameter.get('schema', {}), dict):\nschema_cls = resolve_schema_cls(parameter['s... | Python | MIT License | marshmallow-code/apispec | pass additional parameter info |
393,976 | 04.05.2018 16:11:36 | -7,200 | 881213aaabb791aed549cd5b20c94a87d3755618 | Add handling for marshmallow Dict field type
Dict type resolves to object type with additionalProperties type derived from the 'values' field | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -379,6 +379,8 @@ def field2property(field, spec=None, use_refs=True, dump=True, name=None):\nret.update(schema2jsonschema(field.schema, dump=dump))\nelif isinsta... | Python | MIT License | marshmallow-code/apispec | Add handling for marshmallow Dict field type
Dict type resolves to object type with additionalProperties type derived from the 'values' field |
393,976 | 04.05.2018 16:16:53 | -7,200 | defbe0c4400d271bc660aea5664ad2c3150a0ab8 | add handling for lack of Dict values metadata | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -380,6 +380,7 @@ def field2property(field, spec=None, use_refs=True, dump=True, name=None):\nelif isinstance(field, marshmallow.fields.List):\nret['items'] = fie... | Python | MIT License | marshmallow-code/apispec | add handling for lack of Dict values metadata |
393,976 | 05.05.2018 14:25:44 | -7,200 | dce7c80798191c915d434e3801669eb21c03f8fa | Add test for Dict field values handling | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -8,7 +8,7 @@ from apispec import APISpec\nfrom apispec.ext.marshmallow import swagger\nfrom .schemas import PetSchema, AnalysisSchema, SampleSchema, RunSchema, \\\nSelfRef... | Python | MIT License | marshmallow-code/apispec | Add test for Dict field values handling |
393,976 | 05.05.2018 14:26:42 | -7,200 | cd300ebffd8974b5c9fe98e8368f26dc029ae41b | Add schema with Dict field | [
{
"change_type": "MODIFY",
"old_path": "tests/schemas.py",
"new_path": "tests/schemas.py",
"diff": "@@ -24,6 +24,10 @@ class AnalysisWithListSchema(Schema):\nsamples = fields.List(fields.Nested(SampleSchema))\n+class AnalysisWithDictSchema(Schema):\n+ samplesDict = fields.Dict(values=fields.Nested(S... | Python | MIT License | marshmallow-code/apispec | Add schema with Dict field |
393,976 | 06.05.2018 20:55:02 | -7,200 | 76cb6a27eff8112b403e6e133fcabddc9a30890e | Use value_container property instead of metadata | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -380,8 +380,8 @@ def field2property(field, spec=None, use_refs=True, dump=True, name=None):\nelif isinstance(field, marshmallow.fields.List):\nret['items'] = fie... | Python | MIT License | marshmallow-code/apispec | Use value_container property instead of metadata |
393,976 | 06.05.2018 20:56:48 | -7,200 | 3af0d2e7d94c6db53a751892ec8422fe465d3de7 | Limit Dict values test to marshmallow < 3 | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -585,7 +585,8 @@ class TestDefaultCanBeCallable:\nresult = spec._definitions['DefaultCallableSchema']['properties']['numbers']\nassert result['default'] == []\n-\n+@pytest... | Python | MIT License | marshmallow-code/apispec | Limit Dict values test to marshmallow < 3 |
393,976 | 07.05.2018 02:00:39 | -7,200 | 3584c057c27327326a4b87ee5438893d3e656963 | Make Dict values test narrower | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "import pytest\nimport json\n-from marshmallow.fields import Field, DateTime\n+from marshmallow.fields import Field, DateTime, Dict, String\n+from marshmallow import Schema\nf... | Python | MIT License | marshmallow-code/apispec | Make Dict values test narrower |
393,976 | 07.05.2018 02:01:27 | -7,200 | b4698e47e5fa2ef47c5c940a40c0c1e1805ec0dc | Remove Dict schema | [
{
"change_type": "MODIFY",
"old_path": "tests/schemas.py",
"new_path": "tests/schemas.py",
"diff": "@@ -24,10 +24,6 @@ class AnalysisWithListSchema(Schema):\nsamples = fields.List(fields.Nested(SampleSchema))\n-class AnalysisWithDictSchema(Schema):\n- samplesDict = fields.Dict(values=fields.Nested(S... | Python | MIT License | marshmallow-code/apispec | Remove Dict schema |
393,976 | 07.05.2018 02:16:08 | -7,200 | 4f8c13deb9ae03a36492deda82a983717c868f98 | Access 'type' property of 'additionalProperties' | [
{
"change_type": "MODIFY",
"old_path": "tests/test_ext_marshmallow.py",
"new_path": "tests/test_ext_marshmallow.py",
"diff": "@@ -598,4 +598,4 @@ class TestDictValues:\nspec.definition('SchemaWithDict', schema=SchemaWithDict)\nresult = spec._definitions['SchemaWithDict']['properties']['dict_field']\... | Python | MIT License | marshmallow-code/apispec | Access 'type' property of 'additionalProperties' |
393,976 | 07.05.2018 11:18:59 | -7,200 | 9e141f9ea695a38995c936f3a469271743ff0d8e | add check for Dict(values=None) | [
{
"change_type": "MODIFY",
"old_path": "apispec/ext/marshmallow/swagger.py",
"new_path": "apispec/ext/marshmallow/swagger.py",
"diff": "@@ -381,6 +381,7 @@ def field2property(field, spec=None, use_refs=True, dump=True, name=None):\nret['items'] = field2property(field.container, spec=spec, use_refs=u... | Python | MIT License | marshmallow-code/apispec | add check for Dict(values=None) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.